본문 바로가기

코린이의 소소한 공부노트

검색하기
코린이의 소소한 공부노트
프로필사진 무지맘

  • 분류 전체보기 (1234)
    • Java (109)
    • Back-End (55)
      • Algorithm (36)
      • Data Structure (8)
    • 코딩테스트 풀이 (994)
      • JAVA (963)
      • SQL (31)
    • 먹방일기 (58)
    • Python (14)
    • Deep Learning (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • Matrix
  • string
  • Math
  • SQL
  • 자바
  • Binary Tree
  • simulation
  • 구현
  • Binary Search
  • Counting
  • Stack
  • java
  • bit manipulation
  • 파이썬
  • array
  • Data Structure
  • database
  • geometry
  • implement
  • Method
  • Class
  • Number Theory
  • Tree
  • 코테
  • 코딩테스트
  • sorting
  • dynamic programming
  • two pointers
  • hash table
  • greedy
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Unboxing (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바