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
- Class
- Method
- simulation
- 구현
- array
- Matrix
- Data Structure
- Binary Tree
- SQL
- Math
- greedy
- 코딩테스트
- bit manipulation
- implement
- Stack
- two pointers
- Number Theory
- java
- string
- sorting
- Counting
- Binary Search
- Tree
- 코테
- hash table
- geometry
- 자바
- dynamic programming
- database
- 파이썬
Archives
- Today
- Total
목록auto-boxing (1)
코린이의 소소한 공부노트

[문자열을 여러 가지로 변환하기] 1. 문자열을 기본형으로 변환 int i1 = Integer.parseInt("100"); int i2 = Integer.valueOf("100"); // 래퍼 클래스 변환에도 쓰임 2. 문자열을 래퍼 클래스로 변환 Integer i3 = new Integer("100").intValue(); Integer i4 = Integer.valueOf("100"); // 기본형 변환에도 쓰임 3. 래퍼 클래스를 문자열로 변환 String s = i4.toString(); 4. n진법의 문자열을 숫자로 변환 int i5 = Integer.parseInt("100", 2); // 100(2) = 4 int i6 = Integer.parseInt("100", 8); // 100(8)..
Java
2022. 10. 11. 12:44