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

3rd Nov 2017, 1:35 PM
Thirumoorthi P
Thirumoorthi P - avatar
4 ответов
+ 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);
3rd Nov 2017, 1:42 PM
Dev
Dev - avatar
+ 9
Convert the integers to string, concatenate them, and convert the added string into an integer again!
3rd Nov 2017, 1:38 PM
Dev
Dev - avatar
+ 1
thank you👍
3rd Nov 2017, 1:43 PM
Thirumoorthi P
Thirumoorthi P - avatar
0
i want to know that metho will u tell me?
3rd Nov 2017, 1:39 PM
Thirumoorthi P
Thirumoorthi P - avatar