Mega Code Archive

 
Categories / Java Tutorial / Data Type
 

Use toString method of Short class to convert Short into String

public class Main {   public static void main(String[] args) {     short s = 10;     Short sObj = new Short(s);     String str = sObj.toString();     System.out.println(str);   } }