All pastes #897890 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-09 22:26 UTC
rendered paste body
import java.util.Scanner;

public class BaumgartenRemy4expert {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// Expert Mode
		
		System.out.print("This program converts US customary units of length to metric units of length\n" +
				"Enter a length (number) and units (inches/feet/miles) to convert: ");
		
		Scanner input = new Scanner(System.in);
		double amount = input.nextDouble();
		String type = input.next();
		
		// Test to see if amount and type are assigned by space delimiter (works)
		//System.out.println("test double " + amount);
		//System.out.println("test string " + type);
		
		System.out.print("Convert 100.0 feet to centimeters, meters, or kilometers?: ");
		
		String toConvert = input.next();
		
		//String inches = inches;
		//String i = "inches";           ?
		
		//Cannot make string boolean, so would I use enum on a switch statement?
		
		if (type = ) {
			System.out.println("you choose inches"); //Test to see if boolean of string is TRUE
		}


	}

}