Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.remoting.samples.chat.utility;

Title: Chat4

Description:

Copyright: Copyright (c) 2003

Company:

Author(s):
not attributable
Version:
1.0
public class Debug {
  private static boolean on = false;
  public static void turnOn()
  {
     = true;
    ..println("Debug: chat debugging turned on");
  }
  public static void turnOff()
  {
     = false;
    ..println("Debug: chat debugging turned on");
    }
  public static boolean isOn()
  {
    return ;
  }
  public static void println(String str) {
    if ()
      if (str != null)
        ..println(str);
      else
        ..println("null");
  }
New to GrepCode? Check out our FAQ X