Converting a String to a short Number : Convert from String « Data Type « Java
- Java
- Data Type
- Convert from String
Converting a String to a short Number
public class Main {
public static void main(String[] argv) throws Exception {
short s = Short.parseShort("123");
System.out.println(s);
}
}
Related examples in the same category