Java - Arrays
배열을 다루기 편리한 메서드(static) 제공 package collection; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class ArraysTestMain { public static void main(String[] args){ int[] arr = {0,20,50,2,3,4,5,6,7,8,9,30}; String[] arrStr = {"aa","dd","AB"}; // 1. toString System.out.println(Arrays.toString(arr)); System.out.println(Arrays.toString(arrStr)); // 2. 복사 copyOf copyOfRan..
더보기