1。字符串转其它 double num=Double.parseDouble(str); 利用Double里面的方法 parse意为解析 int hours = Integer.parseInt(timePoint.substring(0, 2)); int minutes = Integer.parseInt(timePoint.substring(3, 5)); 可以选择一部分,substring意为“子串”
2.其它转字符串