-
Notifications
You must be signed in to change notification settings - Fork 1
자바 내장 라이브러리 팁
Cooper edited this page Apr 28, 2023
·
3 revisions
- package:
java.util.Arrays
- method:
public static int[] copyOfRange(int[] original, int from, int to)
int[] subArray = Arrays.copyOfRange(arr, from, to);
- package:
java.lang.Integer
- method:
public static String toString(int i, int radix)
- i : 입력 수
- radix(기수) : 변환하고자 하는 진법
//result: 1010
String numberStr = Integer.toString(10, 2);
StringTokenizer tokenizer = new StringTokenizer(str, delimieter, true/false);