Skip to content

Instantly share code, notes, and snippets.

Avatar

KASHISH PANDITA Kashish-pandita-cloudeq

View GitHub Profile
View gist:cd46eb5985949a1ec685e752e26c1c69
public class GenericMethodTest {
// generic method printArray
public static < E > void printArray( E[] inputArray ) {
// Display array elements
for(E element : inputArray) {
System.out.printf("%s ", element);
}
System.out.println();
}