| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 자바 야구게임
- while
- 25가지 효율적인 sql작성법
- 형변환
- Full text
- 전체텍스트
- full text indexing
- Validations
- 상속
- 업캐스팅
- 전체
- jquery
- 다형성
- 로또
- Login with OAuth Authentication
- Random
- angular2
- 가변인자
- 이클립스
- 스프링
- 상속예제
- IBatis procedure
- 단축키
- 추상클래스
- 자바
- 전자정부
- 다운캐스팅
- 페이징
- 야구게임
- Today
- Total
목록2016/06/22 (45)
nalaolla
package test.com; class FruitSeller { int numOfApple; int myMoney; int applePrice; public FruitSeller(int money, int appleNum, int price) { this.numOfApple = appleNum; this.myMoney = money; this.applePrice = price; } public int saleApple(int money) { int num = money / applePrice; numOfApple -= num; this.myMoney += money; return num; } public void showResult() { System.out.println("남은apple : " + ..
package test.com; class Number { public int num; public Number(int num) { this.num = num; }} public class EnhancedFor { public static void main(String[] args) { // TODO Auto-generated method stub Number[] arr = new Number[] {new Number(1)}; for(Number e: arr) { System.out.println(e.num); } } }
package test.com; class Number3 { int num; public Number3(int n) { num = n; } public int getNumber() { return num; }} public class Constructor2 { public static void main(String[] args) { // TODO Auto-generated method stub Number3 num1 = new Number3(10); System.out.println("method return value : " + num1.getNumber()); Number3 num2 = new Number3(20); System.out.println("method return value : " + n..
배열 기본 문법 package test.com; public class ArrayAndMethod { public static int[] addAllArray(int[] ar, int addVal) { for (int i = 0; i < ar.length; i++) { ar[i] += addVal; } return ar; } public static void main(String[] args) { // TODO Auto-generated method stub int[] arr = {1,2,3,4,5}; int[] ref; ref = addAllArray(arr, 7); if(arr == ref) { System.out.println("동일배열구조"); } else { System.out.println("..
spring + java web application 다국어 지원 설정 다국어를 사용하기 위해서는 코딩시에 여러가지 사항들을 고려 해야 한다. spring framework 및 설정을 통해서 다국어를 사용하는 방법에 여러가지가 있다. 상황에 따라서 쿠키를 이용하거나 세션 그리고 브라우져의 언어 설정을 이용하는 방법등 다양한 방법이 있지만 세션을 이용하는게 현재 작업하는 내용과 가장 일치 하기 때문에 이 방법에 대해서 정리 하도록 한다. [목차]인코딩 설정 하기Spring 설정 Locale을 설정하는 Controller 클래스 작성현재 설정된 Locale을 확인 하는 클래스 작성 메시지를 언어 설정에 따라서 가져오는 클래스Javascript용 파일 생성하기JAVA에서 사용하는 방법JSP에서 사용 하는 방법..