Results 1 to 3 of 3
- 05-13-2011, 08:05 AM #1
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Number Format Exception while parsing long
Hi All,
I am getting numberformat exception when converting binarystring to Long
Any help would be higly appreciatedJava Code:long test=0; Long maxValue=Long.MAX_VALUE; String minValueString=Long.toBinaryString(minValue); test=Long.parseLong(minValueString,2);// getting exception at this line.
Regards,
Aamir
- 05-14-2011, 08:35 PM #2
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
what is actually that minValue parameter
- 05-15-2011, 02:57 AM #3
Senior Member
- Join Date
- Jan 2011
- Location
- Rizal Province, Philippiines
- Posts
- 167
- Rep Power
- 0
Similar Threads
-
how to validate a long value is in valid UTC time format
By gita in forum Advanced JavaReplies: 1Last Post: 02-02-2011, 05:39 AM -
catch the number format exception, where to place try
By aborgeld in forum New To JavaReplies: 7Last Post: 12-30-2010, 01:42 PM -
How to change number format of a field programmatically in Jasper?
By newbiejava in forum New To JavaReplies: 16Last Post: 09-04-2010, 04:03 AM -
Date format exception
By chaudhas in forum New To JavaReplies: 7Last Post: 06-25-2010, 09:31 AM -
Parsing a number using a NumberFormat
By Java Tip in forum java.textReplies: 0Last Post: 04-16-2008, 11:03 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks