Convert String to short primitive


public class Main {

  public static void main(String[] args) {
    short s = Short.parseShort("10");

    System.out.println(s);
  }
}
Home 
  Java Book 
    Runnable examples  

Data Type Short:
  1. Create Short from short value
  2. Convert Short to primitive data type
  3. Convert short to String
  4. Convert String to short primitive
  5. Min and Max values of short
  6. short overflow