View Single Post
  #3 (permalink)  
Old 12-24-2007, 11:19 PM
new_1 new_1 is offline
Member
 
Join Date: Dec 2007
Posts: 5
new_1 is on a distinguished road
take input from user
well, the code was long, but even the example below didnt work.
Code:
public class Main { public static void main(String[] args) { Scanner input = new Scanner( System.in ); int i=input.nextInt(); } }
and of course class java.util.Scanner is imported above.
ill appreciate immediate help.
thanks.
Reply With Quote