2024.JAN.02(TUE) JAVA DAY 22
✅ CREATE, INSERT INTO, UPDATE CREATE TABLE product( product_name CHAR(4), price INT, make_date DATE, company CHAR(5), amount INT ); DESC product; INSERT INTO product VALUES ...
✅ CREATE, INSERT INTO, UPDATE CREATE TABLE product( product_name CHAR(4), price INT, make_date DATE, company CHAR(5), amount INT ); DESC product; INSERT INTO product VALUES ...
✅ 관계형 데이터 베이스 특징 relation ➕ key-value ➕ constraint ☑️ Optionality 관계의 선택성 Mandatory( ) 🆚 Optional (O) 두 테이블 간 관계 설정 시, 페어링 필수 여부 관계의 중요성과 비슷...
public class NumberOfPY { public boolean howManyPY(String str) { String lowerString = str.toLowerCase(); char[] charArray = lowerString.toCharArray(); int numP=0; ...
public int solution(int n){ int sum=0; for(int i=1; i<= n; i++){ if(n%i == 0){ sum= sum + i; } } return sum; }
public int solution(String str){ int intValue= Integer.parseInt(str); return intValue; }
✅ singleton, map //Book.java public class Book { private String title; private String author; public Book() { } public Book(String title, String author) { this.title ...
🆚 SQL은 데이터 지향적 모델링, 행위가 없음 반면 JAVA는 객체 지향적(또는 행위 지향) 모델링 ✔️ SQL에서는 DB를 schema라고 부른다. ✔️ DB끼리 연결되어 있기 때문이다. column: 열 🟰 필드 🟰 attribute row: 행 🟰 레코드 row단위로 데이터가 의미를 가진다. (고객 아이디, 이름, 성별, ...
✅ JAVA build, build tool ✔️ java application 구현 및 실행 준비 ☝🏻java application을 만들 때 비즈니즈 핵심 로직, 중요 클래스는 직접 구현 ✌🏻 동시에 외부 클래스, 인터페이스 등 JAVA library 활용 🤞🏻 코드가 잘 실행되는지 검증 👌🏻 JAVA 외부 library 종속성 관리, lib...
public class solution { public int solution(int n) { int answer=0; for(int x=2; x<n; x++){ if(n % x == 1) { answer = x; ...
✅ 메타 정보 & JAVA Annotation 일상 세계의 다양한 측면에 대한 보조 정보 자바 프로그램의 추가적인 정보를 주는 메타 데이터 @ 사용 ☑️ 종류 Custom annotation Built-in annotation Meta annotation 어노테이션에 대한 메타 데이터 general purpose ...