Results 1 to 5 of 5
Thread: String Tokenizer help
- 10-30-2010, 02:23 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 13
- Rep Power
- 0
String Tokenizer help
I forgot my password and username to this site so I had to make a new one. Okay my code says Process Completed so apparently there isn't any errors, but then it only displays the data line and says Exception in thread
We are supposed to get data from a separate text file and there is another 'string' before the numbers..there's two 'words' so I need to display the name..I'm not sure if I did it rightLast edited by GreenTea; 10-30-2010 at 03:28 AM.
- 10-30-2010, 02:30 AM #2
Works fine for me when I enter 2 strings followed by 11 numbers. I put in: "Josh is 1 2 3 4 5 6 7 8 9 10 11" and got:
data line = Josh is 1 2 3 4 5 6 7 8 9 10 11
Separated data line :
Josh
is
1
2
3
4
5
6
7
8
9
10
11
sum of numbers = 65Sincerely, Joshua Green
Please REP if I help :)
- 10-30-2010, 02:33 AM #3
The error is probably because you declare all of your numbers as integers and you are trying to use a double.
Sincerely, Joshua Green
Please REP if I help :)
- 10-30-2010, 02:38 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 13
- Rep Power
- 0
Okay I will try it. I am an idiot..I hope that is why
- 10-30-2010, 02:44 AM #5
Member
- Join Date
- Oct 2010
- Posts
- 13
- Rep Power
- 0
Similar Threads
-
String Tokenizer
By sumaih in forum Java GamingReplies: 2Last Post: 08-21-2010, 03:23 PM -
String Tokenizer
By hussainian in forum Advanced JavaReplies: 1Last Post: 03-16-2010, 08:58 AM -
String Tokenizer
By viperlasson in forum New To JavaReplies: 1Last Post: 03-09-2010, 01:14 PM -
String Tokenizer
By redasu in forum Advanced JavaReplies: 4Last Post: 02-19-2010, 03:30 AM -
string tokenizer
By twinytwo in forum New To JavaReplies: 2Last Post: 03-26-2009, 02:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks