Convert Short into String in Java
Description
The following code shows how to convert Short into String.
Example
/*from www . ja v a2 s. com*/
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);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »