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