system out println("list is empty")breakcase ' '/reset (to firstiter reset()breakcase ' '/advance to next item current current if!thelist isempty(&!iter atend(iter nextlink()else system out println("can' go to next link")breakcase ' '/get current item if!thelist isempty(value iter getcurrent(ddatasystem out println("returned value)else system out println("list is empty")breakcase ' '/insert before system out print("enter value to insert")system out flush()value getint()iter insertbefore(value)breakcase ' '/insert after system out print("enter value to insert")system out flush()value getint()iter insertafter(value)breakcase ' '/delete current item if!thelist isempty(value iter deletecurrent()system out println("deleted value)else system out println("can' delete")breakdefaultsystem out println("invalid entry")/end switch /end while /end main(//public static string getstring(throws ioexception