일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- DFS
- 리트코드
- Data Structure
- react
- java
- Algorithm
- 다이나믹 프로그래밍
- db
- Python
- 백준
- TypeScript
- 그레이들
- VIM
- 알고리즘
- 프로그래머스
- git
- Javascript
- vscode
- 동적 계획법
- DP
- Database
- frontend
- BFS
- Redux
- 자바
- Graph
- network
- CS
- 안드로이드
- LeetCode
Archives
- Today
- Total
목록진법 변환 (1)
늘 겸손하게

자바 진법 변환 자바에서 10진수를 N진수로, N진수를 10진수로 변환하는 방법은 매우 간단하다. 10진수를 N진수 -> Integer.toString( '숫자', N ) N진수를 10진수 -> Integer.parseInt( 'N진수 숫자', N) 10 진수 -> N 진수 Integer.toString( '숫자', N ) public class Main { public static void main(String[] args) { int number = 24; for (int N = 2; N 10 진수 Integer.parseInt( '숫자', 숫자의 진수 N) 위 코드에서 만들어진 숫자들을 다시 10진수로 변환 public class Main { public static void main(String[..
Algorithm
2023. 7. 26. 17:51