Java Ordering System Sample Code