| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                            Tags
                            
                        
                          
                          - 자바
 - 형변환
 - 전체
 - 단축키
 - 자바 야구게임
 - 추상클래스
 - 야구게임
 - 페이징
 - 다운캐스팅
 - 스프링
 - 상속예제
 - 상속
 - 업캐스팅
 - jquery
 - Random
 - IBatis procedure
 - 전자정부
 - 이클립스
 - while
 - full text indexing
 - 로또
 - Full text
 - 다형성
 - angular2
 - Validations
 - Login with OAuth Authentication
 - 전체텍스트
 - 25가지 효율적인 sql작성법
 - 가변인자
 
                            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 |