0
How to concatinate two integer to make new integer for example [ a=2,b=3, by using c=23 or d=32]
i dont know how ,tell me this
4 Respostas
+ 10
// For example...
int a = 2;
int b = 3;
String a1 = Integer.toString(a);
String b1 = Integer.toString(b);
String sum = a1 + b1;
int c = Integer.parseInt(sum);
System.out.print(c);
+ 9
Convert the integers to string, concatenate them, and convert the added string into an integer again!
+ 1
thank you👍
0
i want to know that metho will u tell me?