new Short(short value) : Short « java.lang « Java by API






new Short(short value)

  


public class Main {

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

    Short sObj1 = new Short(s);
    Short sObj2 = new Short("10");

    System.out.println(sObj1);
    System.out.println(sObj2);
  }
}

   
    
  








Related examples in the same category

1.Short.MAX_VALUE
2.new Short(String s)
3.Short: byteValue()
4.Short: doubleValue()
5.Short: floatValue()
6.Short: intValue()
7.Short: longValue()
8.Short: parseShort(String s,int radix )
9.Short: shortValue()
10.Short: toString()
11.Short: valueOf(String stringValue)