Results 1 to 8 of 8
Thread: Help with Console
- 08-01-2011, 08:03 AM #1
Member
- Join Date
- Aug 2011
- Posts
- 3
- Rep Power
- 0
- 08-01-2011, 08:16 AM #2
- 08-01-2011, 08:31 AM #3
Member
- Join Date
- Aug 2011
- Posts
- 3
- Rep Power
- 0
no, It doesn't help
- 08-01-2011, 08:39 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you show us what you've done with the split().
- 08-01-2011, 08:47 AM #5
Member
- Join Date
- Aug 2011
- Posts
- 3
- Rep Power
- 0
I didn't use split. My problem is at reading.
- 08-01-2011, 09:00 AM #6
I thought you were already reading "John 9" or "Michelle 8". Use Console.readLine() to read those strings. Then use String.split() on them.
Get in the habit of using standard Java naming conventions!
- 08-01-2011, 09:01 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, I understood what you want to do. Reading something like "John 9", you need to separate into "John" and "9". String (Java Platform SE 6) Does the same. Have you read it?
- 08-01-2011, 01:30 PM #8
Similar Threads
-
How to get input from Console
By karma in forum New To JavaReplies: 8Last Post: 08-13-2010, 09:32 PM -
No errors but, nothing in console ..?
By fresh83 in forum New To JavaReplies: 2Last Post: 07-04-2010, 11:58 PM -
Java Console
By stiwi in forum Java SoftwareReplies: 4Last Post: 05-19-2010, 02:53 PM -
implementing a console
By bilbodeb in forum Threads and SynchronizationReplies: 2Last Post: 03-26-2009, 07:09 AM -
how to take input from console in jsp
By veena in forum New To JavaReplies: 1Last Post: 05-06-2008, 04:39 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks