package com.test;
public class Ex02_1 {
public static void main(String[] args) {
for(int n=1;n<=10;n++);{
System.out.println(n +"Hello World");
}
System.out.println("for문을 빠져나옴.");
}
}
package com.test;
public class Ex02_1 {
public static void main(String[] args) {
for(int n=1;n<=10;n++);{
System.out.println(n +"Hello World");
}
System.out.println("for문을 빠져나옴.");
}
}
에휴 볍신아 for문 괄호 뒤에 ; <== 세미콜론은 왜 찍는건데? 안되면 잘 살펴보고 질문을 해 이넘아