목록언어 (3)
새로운시작
자바 기본 데이터 타입 * 정수타입 : byte,short,int,long* 부동 소수점 타입 : float,double* 부울 데이터 타입 : boolean* 문자 데이터 타입 : char 값의 종류 기본타입 메모리사용크기 정수형 byte 1byte char 2byte short 2byte int 4byte long 8byte 실수형 float 4byte double 8byte 논리형 boolean 1byte
next() 문자 또는 문자열을 공백 기준으로 한단어 또는 한문자씩 입력받음 nextLine() 문자 또는 문장 한라인 전체를 입력 받음 hasNext() hasNextLine() *boolean 형식으로 반환해주는 메소드*입력이 있으면 true*빠져나오기 위해선 break 문 사용
error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ ) 더블쿼터(")가 들어갈 위치 앞에 백슬래쉬/역슬래쉬(\) java에서 특수문자 사용시 백슬래쉬/역슬래쉬(\) 입력 Stackoverflow Whenever you're writing regular expressions in Java, remember to escape the \ characters used in the string that defines the regular expression. In other words, if your regular expression contains one \, then you HAVE to write two \\ https://stacko..