4 [인강] 자바의정석 ch03
· 테크· Java
Java
Machine translation — switch to KO for the original.
| 정수형의 오버플로우
정수형 0~2^n -1
| 숫자에서 문자로: +'0'
문자에서 숫자로: -'0'
숫자, 문자에서 문자열로: +" "
문자열에서 숫자로: +Integer.parseInt("문자열") / +Double.parseDouble("문자열")
문자열에서 문자로: +CharAt(0)
System.out.println(3+'0'); → 51
System.out.println((char)(3+'0')); → 문자 3 // 형변환 필요
// '0'은 숫자로 48이다
| 연산자와 피연산자
Comments
No comments yet. Be the first!
319 posts in 테크
- 368Supabase 프로젝트 복사하기 (Restore to a New Project)NEW
- 341Migrating from Permanent Access Tokens to Token Exchange — Why Order Matters
- 326Startup & Product Glossary: Terms Every Solo Founder Should Know
- 325Context Management — How I Do It Now
- 324Claude Code Routines vs Cowork Schedule — What's the Difference?
1–5 / 319