You are viewing a single comment's thread. Return to all comments →
this is my answer:
Integer[] number = {1,2,3}; String[] s = {"Hello", "World"}; List<String> list = new ArrayList<>(); for(int i: number){ list.add(Integer.toString(i)); } for(String p: s){ list.add(p); } for(String i: list){ System.out.println(i); }
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 →
this is my answer: