Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printArray({1,6,4,2});
- public static void printArray(int[] array){
- for (int i = 0; i < array.length; i++) {
- System.out.print(array[i] + ", ");
- }
- printArray(new int[] {1,6,4,2});
- printArray({1,6,4,2});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement