Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- oclick 동적
- Thread
- MAP
- comparator
- 동적 데이터
- 자바
- enum
- 계산기
- 고급자바
- io
- 연산자
- 변수초기화
- 동적 버튼 onclick
- I/O
- IBatis 게시판
- 변수선언
- 기초
- Comparable
- 조건문
- IBatis CRUD
- iBatis
- ListSort
- 쓰레드
- Java
- 객체지향
- 객체
- 변수
- 동적 버튼 생성
- 동적 문자열
- 코딩
Archives
- Today
- Total
목록단일 쓰레드 사용차 처리 (1)
Jun's Blog

import javax.swing.JOptionPane; /** * 단일 쓰레드에서의 사용자 입력 처리 */ public class T05_ThreadTest { public static void main(String[] args) { String str = JOptionPane.showInputDialog("아무거나 입력하세요"); System.out.println("입력한 값은 " + str + "입니다."); for(int i = 10; i >= 1; i--) { System.out.println(i); try { Thread.sleep(1000);// 1초 동안 잠시 멈춘다 } catch (InterruptedException e) { e.printStackTrace(); } } } }
High Java/Thread
2020. 10. 22. 19:56