일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- Express
- chatGPTAPI
- nvmrc
- 클래스
- db
- 웹소켓연결끊김
- 버킷생성
- iam사용자
- aws
- java
- Database
- 웹소켓재시작
- class
- openaiapi
- Github
- aiapi
- git
- 자바
- 웹소켓연결
- gitlab
- javascript
- 노드버전
- GPT3.5
- 클라우드
- 패키지설치에러
- gpt3.5turbo
- gptapi
- ChatGPT
- nodejs
- 호스팅영역
- Today
- Total
목록Study/김영한의 실전 자바 - 기본편 (2)
IT's Jenna
1. 변수의 데이터 타입 1. 기본형 (Primitive Type) 사용하는 값을 변수에 직접 넣음 int, long, double, boolean 직접 연산 가능 2. 참조형 (Reference Type) 객체가 저장된 메모리 위치를 가리키는 참조값(주소값)을 넣음 객체(클래스), 배열 직접 연산 불가, 객체의 기본형 멤버 변수에 접근하여 연산은 가능 Student s1 = new Student(); s1.grade = 100; Student s2 = new Student(); s2.grade = 90; int sum = s1.grade + s2.grade; //연산 가능 자바는 항상 변수의 값을 복사해서 대입한다!!!! package ref; public class VarChange1 { public..
목차 1. 클래스가 필요한 이유 2. 클래스 도입 3. 배열 도입 4. 리펙토링 1. 클래스가 필요한 이유 package class1; public class ClassStart1 { public static void main(String[] args) { String student1Name = "학생1"; int student1Age = 15; int student1Grade = 90; String student2Name = "학생2"; int student2Age = 16; int student2Grade = 80; System.out.println("이름:" + student1Name + " 나이:" + student1Age + " 성적:" + student1Grade); System.out.pri..