블로그
- [영진전문대학 컴퓨터정보계열] 스레드 - 생산자 / 소비자 Buffer { private int data; private boolean empty = true; public synchronized int get() { while (empty) { try empty) { try { wait(); } catch (InterruptedException e) { } } empty = false; this.data = data; notifyAll
- [javascript]예약어 자바스크립트의 키워드이므로 변수이름으로 쓰면 안된다. abstract boolean break byte case catch char class const const continue interface long native new null package private super switch synchronized this throw throws transient true try
- [영진전문대학 컴퓨터정보계열] MySQL 원격 가능 jdbc:mysql://localhost/book_db"; String id = "root"; String password = "1234"; Connection con = null; try 성공"); con = DriverManager.getConnection(url, id, password); System.out.println("데이터 베이스 연결 성공"); } catch
- [영진전문대 컴퓨터정보계열]자바 글자 애니매이션(예제) null; } public void run(){ while(true){ // 프레임 번호를 증가시킨다. frameNumber = (++frameNumber) % MAX_FRAME; try { Thread.sleep(40); } catch (InterruptedException e) { } repain.......
- [영진전문대 컴퓨터정보계열 프로그래밍전공] 10월 17일 수업내용 public class adfs { public static void main(String[] args) { try { int a = 10/1; System.out.println(" Test"); } catch(Exception e) { System.out.println("예외발생"); } finally { System.out.println("Finally");
- [영진전문대 컴퓨터정보계열 프로그래밍전공] 11월 21일 수업내용 검색 public class sdfg { public static void main(String[] args) { // TODO Auto-generated method stub try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("드라이버 적재 성공"); }catch(ClassNotFoundException
- [영진전문대학 컴퓨터정보계열] 스레드 - 동기화 synchronized sharedCounter.increment(); sharedCounter.decrement(); if (i % 40 == 0) sharedCounter.printCounter(); try { sleep((int) (Math.random() * 2)); } catch (InterruptedException e) { } i++; } } } public class test
- [영진전문대 컴퓨터정보계열] private JLabel label; class MyThread extends Thread{ public void run(){ for(int i=10; i>=0; i--){ try { Thread.sleep(1000); }catch(InterruptedException e){ e.printStackTrace(); } label.setText(i + ""); }
- [영진전문대 컴퓨터정보계열프로그래밍전공] 10월 31일 수업내용 sharedCounter.increment(); sharedCounter.decrement(); if(i % 40 == 0) sharedCounter.printCounter(); try { sleep((int)(Math.random() * 2)); }catch(InterruptedException e) { } i++; } } } public class sdf {
- 징크스 로그인 노래 (다운,반복재생) Do you ever wanna catch me? Right now I'm feeling ignored! So can you try a little harder? I wanna try something fun right now, I guess some people call it anarchy!