Computer Science Canada Is there a strintok/intstrok function in java? |
Author: | JayLo [ Mon Apr 05, 2004 5:13 pm ] |
Post subject: | Is there a strintok/intstrok function in java? |
I was just wondering if there was a function to check if a string could be parsed as an integer/double or vice versa. Any takers? |
Author: | nate [ Mon Apr 05, 2004 6:03 pm ] | ||
Post subject: | |||
Hope that helps you |
Author: | JayLo [ Mon Apr 05, 2004 9:05 pm ] | ||
Post subject: | |||
thanks for that review, nate. yes, i know that integer.parseint (mind my capitalization) is to parse strings to int, but i was asking for a command to CHECK if a string variable can be parsed. for example
|
Author: | wtd [ Mon Apr 05, 2004 9:42 pm ] | ||
Post subject: | |||
|
Author: | nate [ Mon Apr 05, 2004 9:47 pm ] |
Post subject: | |
oh, sorry!! lol i just read string - int and was like "Hey i know that". Oh well, i learned something new. Thanks WTD |