10진수 >> 2진수 / 8진수 /16진수 변환
- 10진수 -> 2진수 변환 : Integer.toBinaryString(int);
- 10진수 -> 8진수 변환 : Integer.toOctalString(int);
- 10진수 -> 16진수 변환 : Integer.toHexString(int);
2진수/ 8진수 / 16진수 >> 10진수로 변환
- 2진수 -> 10진수 변환 : Integer.valueOf(string, 2);
- 8진수 -> 10진수 변환 : Integer.valueOf(string, 8);
- 16진수 -> 10진수 변환 : Integer.valueOf(string, 10);
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e2108e13-6238-4948-a6d8-e96f8b84dee2/Untitled.png)
int형 → char형으로 변환해주기 캐스팅
char c = (char) int;