class Solution {
public int solution(int a, int b) {
int answer = 0;
return answer;
}
}
class Solution {
public int solution(int a, int b) {
// int -> string -> 더하기 -> int(Integer.parseInt()) -> 비교
String str1 = a + "";
String str2 = b + "";
int sum1 = Integer.parseInt(str1 + str2);
int sum2 = Integer.parseInt(str2 + str1);
if (sum1 != sum2) {
return Math.max(sum1, sum2);
} else {
return sum1;
}
}
}