간단명료
메소드 설명 static double random() 0.0 이상 1.0 미만의 범위에서 임의의 double형 값을 하나 생성하여 반환함. static double abs(double a) static double abs(float a) static double abs(int a) static double abs(long a) 전달된 값이 음수이면 그 값의 절댓값을 반환하며, 전달된 값이 양수이면 인수를 그대로 반환함. static double ceil(double a) 전달된 double형 값의 소수 부분이 존재하면 소수 부분을 무조건 올리고 반환함. static double floor(double a) 전달된 double형 값의 소수 부분이 존재하면 소수 부분을 무조건 버리고 반환함. static l..
1. length 배열의 길이 출력. public class gyujin { public static void main(String[] args) { int[] array = { 1, 2, 3 }; int length = array.length; System.out.println(length); } } /* 출력결과 5 */ public class gyujin { public static void main(String[] args) { int[] array = new int[10]; int length = array.length; System.out.println(length); } } /* 출력결과 10 */ 배열의 크기를 10으로 초기화하였기때문에, 배열에 따로 원소를 넣지 않아도 10으로 출력된다...