Created
March 10, 2016 14:23
-
-
Save alexejVasko/89306793a6c2cf1d3cfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package array; | |
import java.util.Arrays; | |
public class PrintArray { | |
public static void main(String[] args) { | |
int[] data1 ={1, 5, 10 , 4}; | |
printArray(data1); | |
int[] data2 ={}; | |
printArray(data2); | |
int[] data3 ={0}; | |
printArray(data3); | |
int[] data4 ={0, 0, 10 , 4}; | |
printArray(data4); | |
int[] data5 ={-1, 5, 10 , 4}; | |
printArray(data5); | |
} | |
private static void printArray(int[] data){ | |
System.out.println(Arrays.toString(data)); | |
} | |
} |
private static void printArray(int[] data){
System.out.println(Arrays.toString(data));
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Где Ваш собственный метод вывода массива?