일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바 야구게임
- 다운캐스팅
- 상속예제
- angular2
- 자바
- Full text
- 야구게임
- Validations
- full text indexing
- 25가지 효율적인 sql작성법
- 이클립스
- 단축키
- jquery
- 가변인자
- 전체텍스트
- 상속
- 전자정부
- 페이징
- while
- 업캐스팅
- 추상클래스
- IBatis procedure
- 다형성
- 형변환
- Login with OAuth Authentication
- 스프링
- 전체
- 로또
- Random
- Today
- Total
목록JAVA (117)
nalaolla
package java13staticImport; import static java.lang.Math.*; public class Test01staticImport { public static void main(String[] args) { System.out.println("static import.."); //원주율값을 갖는 객체를 쓰고싶다.. System.out.println(Math.PI); System.out.println(PI); System.out.println((int)(random() * 10)); } }
package test.com; import static test.com.Bank.getBank; public class BankMain { public static void main(String[] args) { System.out.println("Bank Singleton Design Pattern"); //1. Bank객체를 만들고 싶다.. //Bank b = new Bank(); //Bank b = Bank.b; Bank b = Bank.getBank(); //singleton getBank(); System.out.println(b); } } package test.com; public class Bank { //내 b객체를 다른 클래스에서 접근을 막고싶다. private static Bank ..
package test.com; import test.com.aaa.Test02AAA; public class Test02Main { public static void main(String[] args) { System.out.println("static...start"); System.out.println(Test02AAA.name); System.out.println(Test02AAA.age); System.out.println(Test02AAA.address2); System.out.println("================================"); Test02AAA.name = "daniel"; Test02AAA.age = 41; Test02AAA.address2 = "구리시 수택동"..
package test.com; public class Test01staticMain { int num; static String name; public void aaa(){ System.out.println("aaaa..."); Test01staticMain.bbb(); } public static void bbb(){ System.out.println("bbb()..."); Test01staticMain m = new Test01staticMain(); m.aaa(); } public static void main(String[] args) { System.out.println("static..."); //1. static은 static끼리 편하게(객체생성없이) 사용 //접근방법 : class명.st..
package test.com; public class Test04BoardDAO { public int insert(Test04BoardVO vo) { System.out.println(vo.getNum()); System.out.println(vo.getTitle()); System.out.println(vo.getContent()); System.out.println(vo.getWriter()); System.out.println(vo.getRegDate()); return 1; } public int update(Test04BoardVO vo) { return 2; } public int delete(Test04BoardVO vo) { return 3; } public Test04BoardVO s..
package test.com; public class Test03MemberDAO { public int insert(Test03MemberVO vo) { System.out.println(vo); System.out.println(vo.getNum()); System.out.println(vo.getId()); System.out.println(vo.getPw()); System.out.println(vo.getName()); System.out.println(vo.getTel()); return 0; } public int update(Test03MemberVO vo){ System.out.println(vo); return 0; } public int delete(Test03MemberVO vo)..
package test.com; public class Test02ScoreDAO { public String insert(Test02ScoreVO vo) { System.out.println(vo); System.out.println("데이터 저장 처리 완료"); System.out.println(vo.getName()); System.out.println(vo.getKor()); System.out.println(vo.getEng()); System.out.println(vo.getMath()); System.out.println(vo.getTotal()); System.out.println(vo.getAvg()); System.out.println(vo.getGrade()); return "succ..
package test.com; public class Test01DPO { Test01VO vo; public Test01DPO() { } public Test01DPO(Test01VO vo) { this.vo = vo; } public void test() { System.out.println(vo.getModelName()); System.out.println(vo.getProductNum()); System.out.println(vo.getProductName()); System.out.println(vo.getCreateDate()); } public void test(Test01VO vo) { //Test01VO vo = new Test01VO(); System.out.println(vo.ge..
package test.com; public class Test04ScoreMain { public static void main(String[] args) { // Score 값 전달 객체를 만들고 // 출력하시오. getters and setters 만들것 System.out.println("============== Score ============="); ScoreVO sv = new ScoreVO(); sv.setName("KIM"); sv.setKor(90); sv.setEng(88); sv.setMath(75); System.out.println("name : " + sv.getName()); System.out.println("kor : " + sv.getKor()); System.out...
package test.com; public class Test02Getters { private int su; private String str; private boolean power; public int getSu() { return su; } public String getStr() { return str; } public boolean getPower(){ return power; }} package test.com; public class Test02GettersMain { public static void main(String[] args) { System.out.println("Getters..."); Test02Getters tg = new Test02Getters(); // System..