Java: retrieving and printing out items from an arraylist using getters -
i writing program simulate system in coffee shop person takes orders of customers gives customer token number , enters system token number of customer along items s/he has ordered. recordorder function carries out operation allows order details input. order represented token id, tid, , arraylist of strings representing items in order. here have done far: import java.util.arraylist; import java.util.list; import java.util.scanner; public class ques4 { private static class order{ private int tid; private int orderid; private string itemname; public order(int tid,string itemname){ this.tid=tid; this.itemname=itemname; } public int gettid() { return tid; } public void settid(int tid) { this.tid = tid; } public string getitemname() { return itemname; } public void setitemname(string itemname) { this.itemname = itemname; } /*public string tostring(){ return ...