Commit 9bc3c1fa authored by Trisha Gee's avatar Trisha Gee
Browse files

[Ch15] Updated printout to see thread name.

parent 07aaf0fe
Loading
Loading
Loading
Loading
+1 −1
Changes for src/main/java/ch15/TestSyncTest.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class TestSync implements Runnable {
  public void run() {
    for (int i = 0; i < 50; i++) {
      increment();
      System.out.println("balance is " + balance);
      System.out.printf("Balance updated by %s. Balance is %d%n", Thread.currentThread().getName(), balance);
    }
  }