sitelink1 | |
---|---|
sitelink2 | |
sitelink3 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
1. API 내용
2. 스택에 객체가 Push 되는 순서
최초의 객체가 스택에 push 되면 0번째에 쌓이게 된다. ([0, firstObj])
다음 객체가 스택에 push 되면 다시 0번째에 쌓이게 된다. 0번째였던 최초의 객체는 1번째가 된다. ([0, secondObj], [1, firstObj])
다음 객체가 스택에 push 되면 다시 0번째에 쌓이게 된다. 0번째였던 객체는 1번째가 되고, 1번째였던 객체는 2번째가 된다. ([0, thirdObj], [1, secondObj], [2, firstObj])
peek
public java.lang.Object peek(int n)Return the n'th object down the stack, where 0 is the top element and [getCount()-1] is the bottom element. If the specified index is out of range, return null.
peek 메서드는 스택에서 down 방향으로 n번째 객체를 리턴한다. n 이 0 인 경우는 최상위 객체이고 n 이 [getCount()-1] 인 경우는 최하위 객체를 의미한다. 만약 범위를 넘어서는 경우는 null 을 리턴한다.
Parameters:
n - Index of the desired element, where 0 is the top of the stack, 1 is the next element down, and so on.
0 은 최상위 1은 그 다음 객체
public java.lang.Object peek(int n)Return the n'th object down the stack, where 0 is the top element and [getCount()-1] is the bottom element. If the specified index is out of range, return null.
peek 메서드는 스택에서 down 방향으로 n번째 객체를 리턴한다. n 이 0 인 경우는 최상위 객체이고 n 이 [getCount()-1] 인 경우는 최하위 객체를 의미한다. 만약 범위를 넘어서는 경우는 null 을 리턴한다.
Parameters:
n - Index of the desired element, where 0 is the top of the stack, 1 is the next element down, and so on.
0 은 최상위 1은 그 다음 객체
2. 스택에 객체가 Push 되는 순서
최초의 객체가 스택에 push 되면 0번째에 쌓이게 된다. ([0, firstObj])
다음 객체가 스택에 push 되면 다시 0번째에 쌓이게 된다. 0번째였던 최초의 객체는 1번째가 된다. ([0, secondObj], [1, firstObj])
다음 객체가 스택에 push 되면 다시 0번째에 쌓이게 된다. 0번째였던 객체는 1번째가 되고, 1번째였던 객체는 2번째가 된다. ([0, thirdObj], [1, secondObj], [2, firstObj])
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
15 |
Map 사용 예제
![]() | 황제낙엽 | 2010.10.17 | 104 |
14 | Digester/FAQ | 황제낙엽 | 2010.10.16 | 232 |
13 | RuleXML 작성법 | 황제낙엽 | 2009.01.20 | 177 |
12 | 유용한 링크 | 황제낙엽 | 2009.01.20 | 73 |
» | Digester.peek(int n) 메서드의 고찰 | 황제낙엽 | 2008.08.26 | 88 |
10 |
Rule클래스의 작성 및 RuleXml 파일 작성 예제
![]() | 황제낙엽 | 2008.05.15 | 82 |
9 | Package org.apache.commons.digester Description - V1.8 (해석중) | 황제낙엽 | 2008.05.15 | 173 |
8 | Including programmatically-created rules: 의 고찰 | 황제낙엽 | 2008.05.14 | 80 |
7 | Digester 의 xmlrules 를 이용하여 Properties 파일 읽어들이기 | 황제낙엽 | 2008.05.14 | 98 |
6 |
Parsing and Processing Large XML Documents with Digester Rules (해석중)
![]() | 황제낙엽 | 2008.05.13 | 1567 |
5 | Package org.apache.commons.digester.xmlrules | 황제낙엽 | 2008.05.13 | 92 |
4 |
Digester가 제공하는 기본 Rule을 이용한 예제 프로젝트 분석
![]() | 황제낙엽 | 2008.05.13 | 174 |
3 | Digester 의 소개 및 기본적인 사용법 | 황제낙엽 | 2008.05.09 | 116 |
2 | Parsing, indexing, and searching XML with Digester and Lucene | 황제낙엽 | 2008.05.07 | 534 |
1 | Digester란? | 황제낙엽 | 2008.05.07 | 136 |