Online Java Compiler By
JavaTpoint.com
public class ShortParseShortExample7 { public static void main(String[] args) { // it parse string as a signed short in the radix short shortValue = Short.parseShort("55", 6); System.out.println(" String parsed specified by radix , into signed decimal short = "+ shortValue); } }
Output