공부/프로그래머스
더 크게 합치기
딸기버블티
2024. 1. 23. 15:12
class Solution {
public int solution(int a, int b) {
int ab = Integer.valueOf("" + a + b);
int ba = Integer.valueOf("" + b + a);
return ab >= ba ? ab : ba;
}
}