MyLogger만들어서 print하기

public class MyLogger {

private static boolean print = true;

public static void Log(String str) {
if(print) {
System.out.println(str);
}
}

public static void Log(String str, boolean flag) {
if(print) {
if(flag)
System.out.println(str);
}
}
}

댓글

이 블로그의 인기 게시물

파일처리(한번에 모두읽기, 라인단위로 읽기, 쓰기, 리스트처리, 특정길이만큼 읽기)

AWS 가용성,확장성

Serverless computing 도입시 고려사항