You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
public class Solution {
public static void main(String []args){ Integer[] number = {1,2,3}; String[] s = {"Hello", "World"}; printArray(number); printArray(s); } static void printArray(Object[] arr) { for(Object obj:arr) { System.out.println(obj); } }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Generics
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
public class Solution {
}