Interactive.java:19: cannot find symbol
symbol : variable in
location: class interactive
String familyName = In.getString();
and it does that for all the In.get.... that I type, I really have no idea, sorry I'm really beginner at this.
^
public class Interactive
{
public static void main(String[] args)
{
//Obtain name and age
System.out.println("What is your first initial?");
char firstInitial = in.getChar();
System.out.println("What is your family name?");
String familyName = in.getString();
System.out.println("What is your age in years?");
int age = in.getInt();
// respond to input
System.out.println("Well, " + firstInitial + ". "
+ familyName + " - "
+ "I see that your age is " +age);
}
}

New Topic/Question
This topic is locked




MultiQuote







|