public class Test {
public static void main(String[] args) {
int a=1;
int b=2;
String c=(a+b)+"";
System.out.println(c);

int a1=1;
int b1=2;
String c1=Integer.toString(a1+b1);
System.out.println(c1);

int a2=1;
int b2=2;
String c2=String.valueOf(a2+b2);
System.out.println(c2);
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-09-13
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-09-13
  • 2021-11-15
  • 2021-11-05
  • 2021-07-09
  • 2021-11-06
  • 2021-09-13
相关资源
相似解决方案