包括:java
調用String的方法code
String.valueOf()
int i = Integer.parseInt(String); //轉成int double d = Double.parseDouble(String); //轉成double long l = Long.parseLong(String); //轉成long char ch = String.charAt(index); //轉成char