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[][] list = {{"가수는", "Zedd"}, {"배우는", "undefined"}, {"과목은", "물리"}};
		
		for(int i = 0; i < list.length; i++){
			System.out.printf("%d. 가장 좋아하는 %s?%n", i + 1, list[0][i]);
			System.out.println(list[1][i].equals(scanner.nextLine()) ? "정답입니다" : "틀렸습니다");
		}
		
		StringBuilder b = new StringBuilder();
		for(int i = 0; i < list.length; i++) b
				.append("가장 좋아하는 ").append(list[0][i]).append("? ")
				.append(list[1][i]).append("입니다.").append(System.lineSeparator());
		
		System.out.printf("<< 결과 출력 >>%n%s%n", b.toString());
		scanner.close();
	}
}

@@ -450,20 +450,20 @@
 1, list%5B
-0%5D%5Bi
+i%5D%5B0
 %5D);%0A%09%09%09S
@@ -485,20 +485,20 @@
 ln(list%5B
-1%5D%5Bi
+i%5D%5B1
 %5D.equals
@@ -598,39 +598,27 @@
 for(
-int i = 0; i %3C list.length; i++
+String%5B%5D item: list
 ) b%0A
@@ -652,17 +652,14 @@
 end(
-list%5B0%5D%5Bi
+item%5B0
 %5D).a
@@ -686,17 +686,14 @@
 end(
-list%5B1%5D%5Bi
+item%5B1
 %5D).a

Use foreach