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
- Event
- array
- list
- function
- 다형성
- kotlin #return #jump
- GUI
- 상속
- spring
- property
- css
- jsp
- String
- 자바
- Method
- 연락처 프로그램
- jQuery
- JavaScript
- File 클래스
- 설치
- 코틀린#클래스#상속
- 데이터베이스
- Java
- 연산자
- 파일 입출력
- 오라클
- html
- 윈도우 #단축키
- springframework
- javaservlet
Archives
- Today
- Total
목록Generic 클래스 (1)
Binary World
JAVA CLASS : Generic 클래스
* 여러가지 변수, 메소드 등을 받아서 저장할 수 있는 클래스* 두 개 이상의 일반화 변수를 갖는 generic 클래스 * GenericMain02.java package edu.java.generic02; class Test{private T item1;private U item2;public Test(T item1, U item2){this.item1 = item1;this.item2 = item2;}public void display() {System.out.println("아이템1 : " + item1);System.out.println("아이템2 : " + item2);}} // end class Test public class GenericMain02 { public static void ma..
개발자의 길/JAVA
2017. 1. 6. 17:15