일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
31 |
- full text indexing
- jquery
- 전자정부
- 상속
- 로또
- 추상클래스
- 단축키
- 상속예제
- 다운캐스팅
- 형변환
- 다형성
- 가변인자
- while
- 자바
- Random
- 야구게임
- angular2
- IBatis procedure
- 자바 야구게임
- 스프링
- Validations
- Full text
- 페이징
- 업캐스팅
- 전체텍스트
- Login with OAuth Authentication
- 이클립스
- 25가지 효율적인 sql작성법
- 전체
- Today
- Total
목록JAVA (117)
nalaolla
package test.com; public class Test02Score { public static void main(String[] args) { //성적처리 프로그램 String nKor = "국어"; String nEng = "영어"; String nMath = "수학"; int korScore = 50; int engScore = 34; int mathScore = 28; int totalSum = korScore + engScore + mathScore; //double totalAvg = (double) totalSum / 3; double totalAvg = Math.round(((double) totalSum / 3)*10)/10d ; -->소수2째자리까지만 노출시키고자 한다. Str..
package test.com; public class Test02Pay { public static void main(String[] args) { // TODO Auto-generated method stub final int pay = 5000; int workHour = 9; if (workHour > 8) { System.out.println("기본금액 : " + pay * 8); System.out.println("추가수당 : " + (int) (1.5 * pay * (workHour - 8)) ); System.out.println("지급금액 : " + (int) ((pay *8) + 1.5 * pay * (workHour - 8)) ); } else { System.out.println("..
package test.com; public class Test01ifelse { public static void main(String[] args) { // 제어문 : 분기문, 반복문 // 분기문 : if, if~else, if~else if~else if..., if~else if~else // switch~case 비교대상: ~default: // 반복문 : for, while, do~while int su = 2; if (su == 0) { System.out.println("AAA"); } else if (su == 1) { System.out.println("BBB"); } else if (su == 2) { System.out.println("CCC"); } else { System.out..
이클립스에서 "JAD" 디컴파일러를 통해 class파일을 볼수 있도록 설정... 필요파일..실행파일 : JAD.EXE --> http://www.varaneckas.com/jad플러그인 : net.sf.jadclipse_3.3.0.jar --> http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download 1. jad.exe파일의 압축을 푼다.. - 이클립스 디컴파일용이니 구분하기 쉽게 eclipse설치 폴더 안에 넣어줬다..위치는 아무데나 상관없다. 2. 이클립스 설치폴더의 plugin폴더에 net.sf.jadclipse_3.3.0.jar 파일을 복사한다. 3. 이클립스를 실행하고 상단 탭 메뉴의 "Window > Preferences" 를 클릭..
1, 연결 생성 Connection conn = DriverManager.getConnection(url, user, password); 2, 생성CallableStatement CallableStatement statement = conn.prepareCall(sql); 3, 매개 변수 설정 statement.setInt(1, id); statement.registerOutParameter(2, Types.VARCHAR); statement.registerOutParameter(3, Types.INTEGER); statement.registerOutParameter(4, Types.VARCHAR); 4, 실행 statement.execute(); 또는 statement.executeUpdate(); 5..
package test.com.board.view; import java.sql.CallableStatement;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.ResultSetMetaData;import java.sql.SQLException; public class BoardMain { private static final String DRIVER_NAME = "oracle.jdbc.OracleDriver"; private static final String URL = "jdbc:oracle:thin:@localhost:1521:XE"; private static final..
Creating a Table오라클 스키마에 해당 테이블 등록CREATE TABLE "JAVA_PROJECT"."BOARD" ("NUM" NUMBER, "TITLE" VARCHAR2(50 BYTE), "CONTENT" VARCHAR2(2000 BYTE), "WRITER" VARCHAR2(20 BYTE), "REGDATE" DATE ); Creating a Package1. test.com.board.control2. test.com.board.model3. test.com.board.view Package test.com.board.controlBoardDAO.javapackage test.com.board.control; import java.util.List; public interface Board..
Creating a JDBC GUI ApplicationJava in its core is inherently a GUI language, rich in more than one graphical user interface, such as AWT, Swing, JavaFX, QtJambi, SWT, and so forth. It presents a user-friendly mechanism for application interaction, giving a distinctive look and feel. Although they have different architectural cores, they do not fail to provide applications with consistent, intui..
package test.com; import java.util.Random; public class Test01Random { public static void main(String[] args) { System.out.println("Random..."); System.out.println(Math.random()); //난수발생 Random ran = new Random(); System.out.println(ran.nextInt(45+1)); System.out.println(ran.nextDouble()); System.out.println(ran.nextBoolean()); } }============================================랜덤객체는 Math.random과 Ra..
package test.com; import java.util.ArrayList;import java.util.HashMap;import java.util.HashSet;import java.util.Hashtable;import java.util.Iterator;import java.util.LinkedList;import java.util.List;import java.util.Set;import java.util.Vector; public class Test01CollectionAndMap4 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("CollectionAndMap.."..