Java Generic List Template -
i created listprinter (main class) , listholder class. i taught how create generic arrayholder trying modify (my homework) list holder. my teacher's array printer code is: public class arrayholder <p> { p arr[]; public void print(p arr2[],int count) { arr = arr2; (int = 0; < count; i++) { system.out.print("\n"+arr[i]+"\n"); }// end }// end print method }// end class. i used template listholder keep getting error in sout line: public class listholder <x> { x list ; public void print (x list2, int count) { list= list2; (int = 0; < count; i++) { system.out.print(list2(i)+"\n"); } } // end print } //end class what doing wrong??? ========== kaykay it still giving me errors :( copied , pasted answer. first error on line: list list; first list underlined , error is: cannot find symbol...