-
Exception in thread "main" java.util.NoSuchElementException
Hi all
I am here and i am getting a problem with the following code. I am reading a text file in to a jtable. i am unsure whats happening. Do you have any ideas.
Thanks
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:838)
at java.util.Scanner.next(Scanner.java:1347)
at QuestionController.load(QuestionController.java:69)
at QuestionController.<init>(QuestionController.java:20)
at QuestionController.main(QuestionController.java:173)
Press any key to continue . . .
It is working now thanks
Last edited by jc80; 09-18-2007 at 11:29 AM.
-
Your Scanner is not working properly. Have you debugged it? Are there ANY elements being read? My guess is that your delimiter is not being applied as your implementation predicts.
-
It was an unkown character in my data file, I removed it. It works fine now. Thanks
Similar Threads
-
By jjamesis in forum Java
Replies: 4
Last Post: 04-02-2007, 05:37 PM
-
Replies: 4
Last Post: 03-29-2007, 02:30 PM
-
By sreenivas.hcu in forum .NET
Replies: 1
Last Post: 02-23-2007, 04:31 AM
-
By mako_123 in forum Java
Replies: 2
Last Post: 06-29-2006, 03:09 AM
-
By rajshekhar in forum Java
Replies: 1
Last Post: 04-25-2006, 08:36 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|