Short: shortValue() : Short « java.lang « Java by API
- Java by API
- java.lang
- Short
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