problem exception with netbeans 4.1
- From: "Joseph KHOURY" <jkhoury@xxxxxxx>
- Date: Sat, 29 Apr 2006 05:18:51 +0200
Hello,
I have a problem with my program with netBeans 4.1 can you help me?
---------------------------------------------
import java.util.Scanner;
public class Create
{
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
System.out.println("press any key");
String stop = s.nextLine();
}
}
I don t have any problem with the console mode. But with netBeans 4.1 I
have the folowing exception :
press any key
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1471)
at Create.main(Create.java:8)
Do you have any idea?
Thanks for help
.
- Prev by Date: Cannot find JCA 2.0 communication package in Sun's website, anyone has it?
- Next by Date: Re: Alignment Problem
- Previous by thread: Cannot find JCA 2.0 communication package in Sun's website, anyone has it?
- Next by thread: Java Comm API: How to set Raw Serial Mode
- Index(es):
Relevant Pages
|