Online Java Compiler By
JavaTpoint.com
public class DecodeExample { public static void main(String[] args) { //Hexa number system to write 15 String decimalValue = "0x0F"; //String Value decoding into Short Short dec = Short.decode(decimalValue); System.out.println("decoded String value in to Short = " + dec); } }
Output