Notice
Recent Posts
Recent Comments
Link
목록자바 (1)
미국산 귤
[Java] 기본 메소드 정리
스캐너최상단 importimport java.util.Scanner; nextLine() 메소드 : 문자열(공백 가능) 입력 받기String 변수명 = 스캐너명.nextLine(); nextInt() 메소드 : 정수 입력 받기int 변수명 = 스캐너명.nextInt(); System.out.print : 출력System.out.println(출력내용); // ln : 출력 후 줄바꿈System.out.printf(출력내용); // c언어 printf와 동일 : %d, %s 사용 가능 append() : 합치기StringBuilder strBdr_1 = new StringBuilder("Hello,");strBdr_1.append("World!"); // strBder_1에 World! 합침Syst..
Java
2024. 8. 14. 22:14