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