방금만든 함수옆에 - 눌러서 일단 접어두고
밑에 나머지 메서드 만들어보자
public int insert(Notice notice) {}
만들고 (복사해서 밑에 일단 update와 delete도 일단 만들어둠)
select구현했던 클래스의 코드들 복사해서 넣자
return은 리절트가 있으니까 result로 하자
예외빨간줄은 예외처리 던지기 하자

notice로 인해서 값 전달받게 하려고
String title = notice.getTitle();
String writerId = notice.getWriterId();
String content = notice.getContent();
String files = notice.getFiles();
바꿔주자 근데 files생성자가 없네? 추가해주자
Notice클래스 열고
private String files;추가
게터세터 추가
매개변수생성자 지우고 다시 추가
getList메서드에
String files = rs.getString("Files");추가
생성자에서 files추가

이제 update 가져오자
insert처럼 똑같이

이제 delete 가져오자
똑같이

int=2 는 지워주자 매개변수로 인자를 받고있으니까
syso출력문도 필요없으니 다 지워주자
String url이 메소드마다 겹치니까 위로 올려서 같이쓰자
private String url = "jdbc:oracle:thin:@localhost:1521/orcl";
private String uid = "system";
private String pwd = "1234";
private String driver = "oracle.jdbc.driver.OracleDriver";
이자식들 다 겹치니까 위로 올려서 모든 쿼리에서 같이 쓰게하자

드라이버 객체 연결은 매번 해줘야함 위에서 한번에 같이쓰게못함