// this class contains the worker methods for this example public class WorkerClass { // code block for worker1 public void worker1() { int ID = 44559; System.out.println("The ID is " + ID); } // code block for worker2 public void worker2() { float price = 29.99F; System.out.println("The price is " + price); } }