Ptoblems with eclipse and Scanner
Hey! I'm using Eclipse on Ubuntu for coding Java. My java/javac version is 1.6. and on eclipse the JRE seems to be 1.5.
Eclipse says it cannot resolve Scanner. i have imported it, and i pasted the code to my friends and the got it working without a prob. I ried compile the code from clipse and straight from console but it didn't work. Just complained about the Scanner. here's the code:
public class test
public static void main(String args)
Scanner scan = new Scanner(System.in);
System.out.println("Anna luku: ");
luku = scan.nextInt();