62,621
社区成员
发帖
与我相关
我的任务
分享System.out.println(value/10 + value%10*10);
public static void main(String[] args) {
int shuzi=48;
String i = String.valueOf(shuzi);
char c[] = new char[2];
c[0]=i.charAt(0);
c[1]=i.charAt(1);
String daox="";
for (int j = c.length-1; j >=0; j--) {
daox=daox+c[j];
}
int k=Integer.parseInt(daox);
System.out.println(k);
}
int test = 12;
System.out.println(new StringBuffer(String.valueOf(test)).reverse().toString());