package org.dimigo.oop;

import java.util.Scanner;

/**
 * org.dimigo.oop
 *  \_ Question
 *
 * My favorites
 *
 * @author chalk
 * @version 1.0.0
 * @since Mar 31, 2017
 */
public class Question {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		String[] q = { "가수는", "배우는", "과목은" };
		String[] a = { "Zedd", "undefined", "물리" };
		
		for(int i = 0; i < q.length; i++){
			System.out.printf("%d. 가장 좋아하는 %s?%n", i + 1, q[i]);
			System.out.println(a[i].equals(scanner.nextLine()) ? "정답입니다" : "틀렸습니다");
		}
		
		StringBuilder b = new StringBuilder();
		for(int i = 0; i < a.length; i++) b
				.append("가장 좋아하는 ").append(q[i]).append("? ")
				.append(a[i]).append("입니다.").append(System.lineSeparator());
		
		System.out.println("<< 결과 출력 >>");
		System.out.println(b.toString());
		
		scanner.close();
	}
}

@@ -191,17 +191,16 @@
 stion %7B%0A
-%0A
 %09public 
@@ -277,19 +277,16 @@
 em.in);%0A
-%09%09%0A
 %09%09String
@@ -291,23 +291,28 @@
 ng%5B%5D
- q
+%5B%5D list
  = %7B
- 
+%7B
 %22%EA%B0%80%EC%88%98%EB%8A%94%22, %22
 %EB%B0%B0%EC%9A%B0%EB%8A%94%22
@@ -311,45 +311,21 @@
 %22, %22
-%EB%B0%B0%EC%9A%B0%EB%8A%94%22, %22%EA%B3%BC%EB%AA%A9%EC%9D%80%22 %7D;%0A%09%09String%5B%5D a = %7B %22Zedd
+Zedd%22%7D, %7B%22%EB%B0%B0%EC%9A%B0%EB%8A%94
 %22, %22
@@ -338,15 +338,24 @@
 ned%22
+%7D, %7B%22%EA%B3%BC%EB%AA%A9%EC%9D%80%22
 , %22%EB%AC%BC%EB%A6%AC%22
- 
+%7D
 %7D;%0A%09
@@ -377,17 +377,20 @@
  0; i %3C 
-q
+list
 .length;
@@ -445,17 +445,23 @@
  i + 1, 
-q
+list%5B0%5D
 %5Bi%5D);%0A%09%09
@@ -480,17 +480,23 @@
 println(
-a
+list%5B1%5D
 %5Bi%5D.equa
@@ -609,17 +609,20 @@
  0; i %3C 
-a
+list
 .length;
@@ -660,17 +660,23 @@
 .append(
-q
+list%5B0%5D
 %5Bi%5D).app
@@ -697,17 +697,23 @@
 .append(
-a
+list%5B1%5D
 %5Bi%5D).app
@@ -777,18 +777,17 @@
 ut.print
-ln
+f
 (%22%3C%3C %EA%B2%B0%EA%B3%BC 
@@ -795,33 +795,17 @@
 %EB%A0%A5 %3E%3E
-%22);%0A%09%09System.out.println(
+%25n%25s%25n%22, 
 b.to
@@ -815,19 +815,16 @@
 ing());%0A
-%09%09%0A
 %09%09scanne

Use 2d array