Parse an unsigned short in Java

short s = (short) Integer.parseInt("65000");

System.out.println(Short.toUnsignedInt(s)); // 65000

Comments

Be the first to comment!