Results 1 to 2 of 2
Thread: Parse String quickie
- 10-20-2012, 04:11 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 21
- Rep Power
- 0
Parse String quickie
Hi all,
I've got a file:
Which is meant to be used to fill the data of a class.Name: John Smith
Age: 29
Height: 6.0
Weight: 160
What method do I use to find the first instance of " " and "toWhatever" the string from there? Thanks.
Edit: StringBuffer?
Edit2: Sorry all, my solution:
Java Code://bufferedReader is a succesfully opened file int ch; while ((ch = bufferedReader.read()) != -1 && ch != ' ') ;
Last edited by Lowest0ne; 10-20-2012 at 04:30 PM.
- 10-20-2012, 07:32 PM #2
Member
- Join Date
- Mar 2011
- Posts
- 88
- Rep Power
- 0
Similar Threads
-
how to parse this string to SimpleDateFormat
By vpillai in forum New To JavaReplies: 2Last Post: 08-26-2011, 09:50 AM -
parse xml string
By awallace in forum Java AppletsReplies: 1Last Post: 07-27-2011, 02:01 PM -
Trying to parse int from string. Need help please.
By Romally in forum New To JavaReplies: 4Last Post: 11-14-2010, 09:58 PM -
how to Parse int to a string variable
By raj reddy in forum Java ServletReplies: 10Last Post: 01-09-2009, 07:41 PM -
how to Parse int to a string variable (pls hlp)
By raj reddy in forum Threads and SynchronizationReplies: 5Last Post: 06-10-2008, 06:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks