java 类型转换

Integer    Integer.parseInt(字符串名);    转成int型

Byte       Byte.parseByte(字符串名);

Short      Short.parseShort(字符串名);

Long       Long.parseLong(字符串名);

Float      Float.parseFloat(字符串名);

Double     Double.parseDouble(字符串名);

你可能感兴趣的:(java)