Mega Code Archive

 
Categories / Java / Data Type
 

Short class creates primitives that wrap themselves around data items of the short data type

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