Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Integer[] iray = {1, 2, 3, 4};
- Character[] cray = {'b', 'u', 'c', 'y'};
- printMe(iray);
- printMe(cray);
- }
- public static void printMe(Object[] obj) {
- for (Object o : obj)
- System.out.printf("%s ", o);
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement