funny Java

Feb. 4th, 2010 11:04 am
juan_gandhi: (Default)
[personal profile] juan_gandhi
byte b = Byte.parseByte("80", 16);

throws an exception "value out of range"

very, very smart...

Date: 2010-02-04 07:05 pm (UTC)
From: [identity profile] ygam.livejournal.com
Does it have to be "-80"?

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 1st, 2025 06:24 pm
Powered by Dreamwidth Studios