BaekJoon Oline Judge - Step 6 1152. 단어의 개수 앞 뒤 공백 꼭 고려하기! import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); String word[] = str.split(" "); int cnt = 0; for(int i=0; i