How to convert primitive short to Short object in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {

    public static void main(String[] args) {

        short s = 33;

        Short sObj = s;
        System.out.println(sObj);
    }
}
   
/*
      
run:
      
33
  
*/

 



answered Nov 7, 2016 by avibootz

Related questions

...