int a=1;
int b=3;
int c=5;
int d=7;
int e=9;
int f=2;
//输出为字符串形式
System.out.println(""+a+b+c);
String g="abivjo";
//获取字符串内某个位置的字符
System.out.println(g.charAt(2));
输出为字符串形式
最新推荐文章于 2023-03-18 08:00:00 发布
int a=1;
int b=3;
int c=5;
int d=7;
int e=9;
int f=2;
//输出为字符串形式
System.out.println(""+a+b+c);
String g="abivjo";
//获取字符串内某个位置的字符
System.out.println(g.charAt(2));