Short: shortValue() : Short « java.lang « Java by API






Short: shortValue()

  
        
public class MainClass {
  public static void main(String[] args) {
    short s = -1800;
    Short s2 = new Short(s);
    System.out.println(s2.shortValue());
  }
}

   
    
  








Related examples in the same category

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