Program 19.4: BytePrinter with name printing

public class BytePrinter extends Thread {

  public BytePrinter(String s) {

    super(s);
  
  }

  public void run() {
    for (int b = -128; b < 128; b++) {
      System.out.println(getName() + ": " + b);
    }
  
  }
  
}

Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
This Chapter
Examples
Home