import java.util.Scanner;
public class Landscape
{
public static void main (String [] args)
{
Scanner keyboard = new Scanner (System.in);
int feet3, feet3_6, feet6, treespurchased, treeheight, delivery;
String input;
int answer;
System.out.printf("%12s", "Nachbauer Gardens");
System.out.println ();
System.out.println("Tree Purchasing System");
System.out.println("How many trees do you wish to purchase? ");
treespurchased = keyboard.nextInt();
System.out.print("Enter 1 for delivery only, 2 for planting, 3 for none : (1=delivery, 2=planting, 3=none) ");
input = keyboard.nextLine();
answer = input.intAt(0);
System.out.println("Green Fields Billing Statement");
System.out.print("\nNUMBER OF TREES PURCHASED " + treespurchased);
}
}
1 error found:
File: C:\Documents and Settings\Tim\Desktop\javaprograms\Landscape.java [line: 21]
Error: C:\Documents and Settings\Tim\Desktop\javaprograms\Landscape.java:21: cannot find symbol
symbol : method intAt(int)
location: class java.lang.String
I want the output to analyze what the user hit it doesn't need to print that but later I'm going to have that be analyzed based on what they hit so I can print that there is a delivery charge. In a If statement

New Topic/Question
Reply




MultiQuote





|