Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 855 Bytes

File metadata and controls

17 lines (16 loc) · 855 Bytes

✏️ JavaStudy


메서드

  • Arrays.toString(배열명) : 배열의 모든 요소를 문자열로 반환하여 출력한다.
  • Integer.parseInt(변환하고 싶은 문자열 or 문자열이 들어있는 변수.) : 문자열을 정수로 변환하는 방법
  • double.parseDouble(문자열) : 문자열을 실수로 변환하는 방법
  • 반복할 문자열.repeat(반복횟수) : 문자열을 반복횟수 만큼 반복한 결과를 리턴합니다.

단축키

  • ctrl + space + enter를 누르면 생성자가 만들어진다.
  • alt + shift + s를 누르면 자동생성 메서드들이 나온다(주로 getter,setter를 많이 씀).
    generate constructor using fields는 멤버 변수 초기값을 설정하는 생성자를 만들어 준다