How would I go about loading another separate classes LinkedList with a number in my current class? I want to retrieve the number that is getting "pulled" (via the .pullOrder in this Run method) and load it into a linkedList called printerQueue in another class (called OrderQueue).
public class OrderHandler extends Thread { private OrderQueue orderQueue; public OrderHandler(OrderQueue orderQueue) { this.orderQueue = orderQueue; } public void run() { Order order; while (true) { order = orderQueue.pullOrder(); // get next available order OrderQueue.printerQueue = order; System.out.println("\t\t\t " + order.toString() + " " + this.getName()); try { Thread.sleep(2000); } // delay two seconds catch (InterruptedException e) {} // ignore interruptions } // end while } // end run method } // end OrderHandler class