// 수박수박수박수박수박수? - 연습문제
public class Watermelon {
public String solution(int n) {
String answer = "";
for (int i = 0; i < n; i++) {
answer += (i % 2 == 0) ? "수" : "박";
}
return answer;
}
public static void main(String[] args) {
Watermelon s = new Watermelon();
System.out.println(s.solution(3));
System.out.println(s.solution(4));
}
}
answer = (a>0) ? true : false;