Convert String to short primitive
public class Main { public static void main(String[] args) { short s = Short.parseShort("10"); System.out.println(s); } }