listing continued current current nextreturn value///end class listiterator ///////////////////////////////////////////////////////////////class interiterapp public static void main(string[argsthrows ioexception linklist thelist new linklist()/new list listiterator iter thelist getiterator()/new iter long valueiter insertafter( )iter insertafter( )iter insertafter( )iter insertbefore( )/insert items while(truesystem out print("enter first letter of showreset")system out print("nextgetbeforeafterdelete")system out flush()int choice getchar()/get user' option switch(choicecase ' '/show list if!thelist isempty(thelist displaylist()else system out println("list is empty")breakcase ' '/reset (to firstiter reset()breakcase ' '/advance to next item if!thelist isempty(&!iter atend(iter nextlink()else