There are few errors in your Java - Generic code example.
Link for the Java Generics is : [b]http://www.tutorialspoint.com/java/java_generics.htm[/b]
Error is as follows :
In the main method you have declared the variables as
Integer[] intArray = { 1, 2, 3, 4, 5 };
Character[] charArray = { 'H', 'E', 'L', 'L', 'O' };
and while accessing you have done like this
System.out.println( "Array integerArray contains:" );
printArray( [b]integerArray [/b]); [b]// pass an Integer array *** This is wrong as no variable with [/b]integerArray
System.out.println( "\nArray characterArray contains:" );
printArray( [b]characterArray [/b]); [b]// pass a Character array *** This is wrong as no variable with characterArrayy[/b]
Please change them to intArray and charArray.
Thanks
Anand Chaubey