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); } } }