This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ThreadTest implements Runnable{ | |
public ThreadTest(){ } | |
public void run(){ | |
System.out.println(Thread.currentThread().getName()+" : Thread Start."); | |
for (int i = 0; i < 10; i++){ | |
try { | |
Thread.sleep(1000); | |
System.out.println(i+1+"초"); | |
}catch (Exception e){ | |
e.printStackTrace(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ..? | |
import java.util.Arrays; | |
import java.util.List; | |
public class StreamTest2 { | |
class Member{ | |
private String name; | |
private int penaltyCount; | |
private String nickName; |