표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.*; import java.util.stream.*; public class prog { public static void main(String[] args){ Stream<String> stream = Stream.of("넷", "둘", "하나", "셋"); List<String> list = stream.collect(Collectors.toList()); Iterator<String> iter = list.iterator(); while (iter.hasNext()) { System.out.print(iter.next() + " "); } } }