본문 바로가기
Class/220728

Class_Overload(1-2)

by pms93 2022. 7. 28.
package method;

public class Print {

	public static void printArr() {
		System.out.println();
	}
	
	public static void printArr(int[] arr) {
		for (int a : arr)
			System.out.println(a);
	}
	
	public static void printArr(String[] strs) {
		for (String a : strs)
			System.out.println(a);
	}
	
	public static void printArr(double[] doubles) {
		for (double a : doubles)
			System.out.println(a);
	}
}

'Class > 220728' 카테고리의 다른 글

Class_Inheritance(1-2)  (0) 2022.07.28
Class_Inheritance(1-1)  (0) 2022.07.28
Class_Overload(1-1)  (0) 2022.07.28
Class(2-2)  (0) 2022.07.28
Class(2-1)  (0) 2022.07.28