Tuesday, November 03, 2009

system.out.println

Note to myself:
You should never use System.out.println in production code.. See the synchronized block out there.


public void println(String x) {
synchronized (this) {
print(x);
newLine();
}
}

1 comments:

Anonymous said...

indeed man.