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);
}
}
}
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);
}
}
}
댓글
댓글 쓰기