I STRONGLY suggest using the scanner for this, as it is much easier to use, though it is slightly more limited than other things (in my opinion).
These are declared by using:
Scanner scanner=new Scanner(System.in);
You may get input from the user by using:
scanner.nextInt(); scanner.nextLine();
You should goto: http://download.oracle.com/javase/1,5.0/docs/api/java/util/Scanner.html for more information about the Scanner Class
thank you very much.. I got the point