new Short(String s) : Short « java.lang « Java by API






new Short(String s)

  

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(short value)
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)