Hello guys.
I have this string in my program, and i want to parse the last number in the string so i can use it do calculate time. Here is how the string looks like:
"Client Transmited Word: Sarajevo BiH Client Send Time in ms: 1272838801913"
What i use now is this to parse out the number is:
Note: nm is object defined as Long
But it just keeps throwing exception. What am i doing wrong?
Thanks
I have this string in my program, and i want to parse the last number in the string so i can use it do calculate time. Here is how the string looks like:
"Client Transmited Word: Sarajevo BiH Client Send Time in ms: 1272838801913"
What i use now is this to parse out the number is:
Code:
String input = is.readLine();
//obtain received time on server
long ServerReceiveTime = System.currentTimeMillis();
long ClientSendTime = nm.parseLong(input, 55);
Note: nm is object defined as Long
But it just keeps throwing exception. What am i doing wrong?
Thanks