class Solution { public int solution(int num, int n) { int answer = 0; if( num % n == 0) { answer = 1; } return answer; } }
class Solution { public int solution(int a, int b) { int answer = 0; String str1 = Integer.toString(a); String str2 = Integer.toString(b); String str3 = str1 + str2; int c = 2 * a * b; if(Integer.parseInt(str3) > c) { answer = Integer.parseInt(str3); return answer; } else { answer = c; return answer; } } }
class Solution { public int solution(int a, int b) { int answer = 0; String str1 = Integer.toString(a); String str2 = Integer.toString(b); String str3 = str1 + str2; String str4 = str2 + str1; if(Integer.parseInt(str3) > Integer.parseInt(str4)) { answer = Integer.parseInt(str3); return answer; } else { answer = Integer.parseInt(str4); return answer; } } }
class Solution { public String solution(String my_string, int k) { String answer = ""; for(int i = 0; i < k; i++){ answer += my_string; } return answer; } }
class Solution { public String solution(String[] arr) { String answer = ""; for( int i = 0; i < arr.length; i++) { String str1 = arr[i]; answer += str1; } return answer; } }