자바 과정을 시작하였다.
맥북에서 사용하는 이클립스는 별로 마음에 들지 않는다.
특히, 한글 주석을 입력할 때 마지막 글자가 씹히는 현상이 발생한다. 검색을 해보니 원래 그렇단다. 맥북을 사용하다 보면 한글 입력 완성에 그다지 신경을 쓰지 않는 것이 너무 뻔하게 보여 맥북의 문제가 첫 번째 원인이지만 다른 프로그램들은 이를 어떻게든 해결해준 모습을 보면 또 한편으로는 이클립스가 별로인지도.. (영어로 적으라는 큰 가르침인가)
자바는 17.0.5 버전을 설치하였고, 이클립스는 2021-12 버전을 설치하였다.

https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
Java Archive Downloads - Java SE 17
WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downloading th
www.oracle.com

https://www.eclipse.org/downloads/packages/release/2021-12/r
2021-12 R | Eclipse Packages
509 MB 871,826 DOWNLOADS Tools for developers working with Java and Web applications, including a Java IDE, tools for JavaScript, TypeScript, JavaServer Pages and Faces, Yaml, Markdown, Web Services, JPA and Data Tools, Maven and Gradle, Git, and more. Cli
www.eclipse.org
자주 쓰는 명령어를 입력할 때 자동완성 기능도 많이 부족한 듯하다. 기능뿐만 아니라 입력을 타이핑하는 그 키들도 불편하다. 아직 제대로 모르고 쓰고 있기에 그럴 수 있으니 손에 익히는 방법과 단축키를 변경하는 방법 두 가지 중 더 나은 것을 찾아야 할 테다.
편의성 면에서 무료 온라인 에디터보다 못한 점들이 너무 보인다 ㅠ
오늘 연습해본 프린트와 변수 지정에 관한 코드.
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("test print"); /* 숫자 2: 0, 1 8: 0 ~ 7 10: 0 ~ 9 16: 0 ~ 9 A B C D E F(15) 0x000000 black 0xffffff white 1010 1100 -> binary 8421 8421 8+2 8+4 A C -> hex 0xAC 0xE5 -> hex 14 5 8421 8421 1110 0101 -> binary */ // 변수 // - 숫자 // 정수 byte, short, integer, long byte by; by = 12; System.out.println(by); by = 25; System.out.println(by); by = 127; by = -128; short sh; // 2 byte int i; // 4 byte long l; // 8 byte l = 1234567890123456789L; // 실수(소수) float, double float f; // 4 byte f = 123.456F; double d; // 8 byte d = 234.12345678901234567890123456790123456789012345678901; // - 문자열 // character char c; // 2 byte c = 'A'; c = '한'; // string String str; str = "Hello"; // - 논리true / false (boolean) boolean b; b = false; // = 0 b = true; // = 1 // 변수명 규칙 int hh; int humanHeight; int da; int charPostionXdot; int char_position_xdot; int charPosXdot; System.out.println(d); System.out.println("c = " + c); } } /* test print 12 25 234.12345678901235 c = 한 */
'공부하기 > Java 겹바림' 카테고리의 다른 글
[Java 복습] DAO, DTO 작동 구조 연습 (0) | 2022.12.31 |
---|---|
[Java 복습] 단순한 성적 관리 CLI (0) | 2022.12.26 |
Java 시작 (0) | 2022.12.19 |