int 与 string用法:
public class IntergarDemo{
public static void main (String[] args){
int number= 100;
String s1=" "+number;
System.out.println("s1:"+s1);
}
}
public class IntergarDemo{
public static void main (String[] args){
int number= 100;
String s1=" "+number;
System.out.println("s1:"+s1);
}
}
本文标题:java int 与String 转换
本文链接:https://www.haomeiwen.com/subject/hndtyxtx.html
网友评论