| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                            Tags
                            
                        
                          
                          - 페이징
- 야구게임
- while
- 스프링
- Random
- 추상클래스
- 전자정부
- 형변환
- IBatis procedure
- 전체
- 이클립스
- 다운캐스팅
- 다형성
- 단축키
- angular2
- 25가지 효율적인 sql작성법
- 상속
- 업캐스팅
- 자바
- 로또
- 전체텍스트
- Full text
- Validations
- 상속예제
- 자바 야구게임
- full text indexing
- Login with OAuth Authentication
- 가변인자
- jquery
                            Archives
                            
                        
                          
                          - Today
- Total
nalaolla
강화된 for문 본문
728x90
    
    
  반응형
    
    
    
  - 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);
- }
- }
- }
728x90
    
    
  반응형
    
    
    
  'JAVA > 4. Array' 카테고리의 다른 글
| ReculFactorial 예제 (0) | 2016.06.22 | 
|---|---|
| InfRecul 예제 (0) | 2016.06.22 | 
| 과일판매 예제 (0) | 2016.06.22 | 
| Constructor2 생성자 이용 (0) | 2016.06.22 | 
| ArrayAndMethod - 배열 기본문법 (0) | 2016.06.22 |