Cute Happy Ghost
본문 바로가기
728x90
SMALL

전체 글405

visual studio code에서 저장소에 올리는법 ctrl+shifr+`누르면 터미널 뜸 git add . git commit -m "메시지" git push 해주면 됨 C:\Users\user1\Frontend>git remote -v origin https://github.com/Jenn-tech/Frontend (fetch) origin https://github.com/Jenn-tech/Frontend (push) C:\Users\user1\Frontend>git add . C:\Users\user1\Frontend>git status On branch main Your branch is up to date with 'origin/main'. Changes to be committed: (use "git restore --staged ..." t.. 2020. 11. 9.
20201109_33 html 테이블,이미지,문서 테이블 이름1 1행 2열 1행 3열 이름2 2행 2열 2행 3열 이름3 3행 2열 이름4 4행 2열 4행 3열 이름5 5행 3열 empno ename sal comm deptno 1 Chiho Won 0 null 30 이미지 이미지로 이동 누르면 새창으로 뜬다 문서태그 문서목록 문서제목1 문서제목2 문서제목3 문서제목4 문서제목5 문서제목1 Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at H.. 2020. 11. 9.
201109_33 설치환경(vscode & git연동) code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. code.visualstudio.com vscode와 nvm을 다운받아준다 github.com/nvm-sh/nvm#installing-and-updating nvm-sh/nvm Node Version .. 2020. 11. 9.
Todolist Application public class Application { public static void main(String[] args) { new TodoApplication(); } } TodoApplication import java.time.LocalDateTime; import java.util.Scanner; public class TodoApplication { Scanner in = new Scanner(System.in); TodoService todoService = new TodoService(); public TodoApplication() { run(); } public void run() { renderMenu(); int selectedAction = chooseMenu();.. 2020. 11. 6.
201106_32 상속 #상속 변수 -private인 경우 상속안됨 -부모 클래스 멤버 변수와 이름이 동일한 경우 상속 안됨 sub - super - object 메서드 Sub- Super-Object Application public class Application { public static void main(String[] args) { Super testA = new Sub(); Sub testB = new Sub(); System.out.println(((Sub)testA).data); //super System.out.println(testB.data); //sub class testA.print(); testB.print(); } } Super public class Super { String data; publi.. 2020. 11. 6.
20201105_29 jdbc문제 및 해결 #1 1. 원인 : 컬럼인덱스는 1부터 시작하는데 0부터 불러오고있다 조치 : 1부터 시작하도록 if(rset.next()) { Memo m = new Memo(); m.setNo(rset.getInt(1)); m.setName(rset.getString(2)); m.setMsg(rset.getString(3)); m.setWriteday(rset.getDate(4)); } 2. 원인 : 조회된 결과 memo객체에 저장후 list에 담아야 하지만 담지않음 조치 : list에 담음 list.add(m) 3. 원인 : 여러행을 출력하는 쿼리지만 if문을 사용하였기떄문에 여러 row가 조회되어도 상단의 첫 행만 불러와서 저장함 조치 : if를 while로 변경 if(rset.next()) //변경후 while.. 2020. 11. 5.
selection does not contain a main type 실행을 했는데 이 에러가 떴다 해결방안 1. 메인 함수가 public static void main(String[] args) 가 맞나 확인한다. 2. 현재 작성하고 있는 파일이 src 폴더 안에 들어가있는지 확인한다. 나는 1이어서 다시 수정하고 실행해줬더니 잘 됐다 ㅎㅎ 2020. 11. 5.
20201104_28 thread #스레드 사용 방법 Thread -상속 Runnable -람다 -구현체는 thread생성자에 넘기는 방법 스레드클래스 package java; import java.awt.Toolkit; public class BeepThread extends Thread { @Override public void run() { Toolkit tk = Toolkit.getDefaultToolkit(); while(true) { tk.beep(); try { System.out.printf("[%s] thread is running\n ", Thread.currentThread().getName()); Thread.sleep(5000); } catch (InterruptedException e) { // TODO: han.. 2020. 11. 4.
20201104_28 jdbc Application9 package jdbc; import java.sql.*; public class Application9 { private static final String JDBC_URL = "jdbc:oracle:thin:@localhost:1521:XE"; private static final String DB_USER = "system"; private static final String DB_PASS = "oracle"; public static void main(String[] args) throws ClassNotFoundException { // TODO Auto-generated method stub Class.forName("oracle.jdbc.driver.OracleDriv.. 2020. 11. 4.
20201104_27 Review Application1 package jdbc; import java.sql.*; public class Application { public static void main(String[] args) throws ClassNotFoundException { //1.jvm에 클래스 로드 Class.forName("oracle.jdbc.driver.OracleDriver"); //2.드라이버 매니저로부터 커넥션 얻어옴 try ( final Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "system", "oracle" ); //3.데이터베이스 작업 PreparedStatement pstmt = conn... 2020. 11. 4.
728x90
LIST