so far..
import java.util.Scanner;
public class JavaTutorial2Math {
static void main(
String[] args){
Scanner in = new Scanner(System.in);
int age;
System.out.println("How old are you?");
age = in.nextInt();
if (age >= 21)
System.out.println("You may enjoy a drink.");
else
System.out.println("You are not old enough to drink.");
}
}
and the program feeds me "selection does not contain a main type" unlike "Hello Ranch" so something with this scanner class causes this.
many thanks