String转换char数组和int型和Double型
2021-07-07 17:04
标签:转换 har i++ [] rgs integer for stat out package z; public class z { public static void main(String[] args) { String s = "123"; int s_ = Integer.parseInt(s);// String转换为int double s__ =Double.parseDouble(s);// String转换为double } String转换char数组和int型和Double型 标签:转换 har i++ [] rgs integer for stat out 原文地址:https://www.cnblogs.com/wym-1999/p/9588861.html
char[] c = s.toCharArray();// String转换为char[]
for (int i = 0; i System.out.println(c[i]);
}
System.out.println(s_);
System.out.println(s__ );
}
上一篇:c# 批量获取zoomeye数据
下一篇:奖学金---排序
文章标题:String转换char数组和int型和Double型
文章链接:http://soscw.com/index.php/essay/102183.html