Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Input via java.util.Scanner

602823Oct 11 2007 — edited Aug 20 2008
I know it's possible for JDeveoper 10G to take input via BufferedReader, is the same possible using the scanner class as in:

Scanner input = new Scanner(System.in);
System.out.println("Enter your age");
int age = input.nextInt();
System.out.println("You are " + age);


JDeveloper can't seem to take imput from the scanner class. Is there a way arround this?

Andrew.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2008
Added on Oct 11 2007
9 comments
3,541 views