Converting a String to a short Number
public class Main { public static void main(String[] argv) throws Exception { short s = Short.parseShort("123"); System.out.println(s); } }