3 [인강] 자바의정석 기초편 ch02
· 테크· Java
Java
| Scanner
int num= scanner.nextInt ( ) ; // or
String input = scanner.nextLine ( ) ;
int num = Integer.parseInt(input) ; /*문자열을 숫자로 변환*/
import java.util.*; //import문 입력필요
public class ScanfEx1 {
Scanner scanner = new Scanner (System.in);
int num = scanner.nextInt();
System.out.println(num);
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