We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
//method needs to be public
//because separate solution class will attempt to access it
public <T> void printArray(T[] array){
for(T item: array){
System.out.println(item);
}
}
Java Generics
You are viewing a single comment's thread. Return to all comments →
MyCode{
}