Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 백준 16927
- mysql
- 백준 15661
- Codility
- 백준 11723
- 프로그래머스 네트워크 java
- 백준 17425
- 코딩테스트
- Algorithm
- Math.floor()
- 백준 14391
- Math.ceil()
- 자바
- sort
- java 반올림
- java 올림
- 백준 4375
- 백준 18290
- java 내림
- 알고리즘
- 프로그래머스 도둑질 java
- 백준 16935
- 0으로 채우기
- java
- 프로그래머스 옹알이 java
- time complexity
- Arrays
- 네트워크
- 프로그래머스 숫자의 표현 java
- 프로그래머스 연속된 수의 합 java
Archives
- Today
- Total
목록2진수 (1)
취미처럼
[JAVA] N진수 변환(2진수, 8진수, 10진수, 16진수)
public static void main(String args[]) { //10진수 int deciaml = 15; //2진수 String binaryString = Integer.toBinaryString(deciaml); int binaryToDecimal = Integer.parseInt(binaryString, 2); System.out.println(binaryString); //1111 System.out.println(binaryToDecimal); //15 //8진수 String octalString = Integer.toOctalString(deciaml); int octalToDecimal = Integer.parseInt(octalString, 8); System.out.printl..
JAVA/이론
2021. 3. 26. 11:09