---
title: "Interface Enumeration"
---

`package java.util`

```text
public boolean hasMoreElements()
```

## 설명

**Returns:**
- 객체가 남아있다면 true 아니면 false.

### nextElement

**Returns:**
- 다음 순서의 객체.

**Throws:**
- `NoSuchElementException` - 더 이상 객체가 없을 때 발생.## 메서드 요약

- `boolean hasMoreElements ()` — Enumeration안에 남아있는 객체가 있는지 여부를 구한다.
- `Object nextElement ()` — Enumeration에서 다음 객체를 구한다.

## 메서드 상세

### hasMoreElements

```java
public boolean hasMoreElements()
```

**Returns:**
- 객체가 남아있다면 true 아니면 false.

### nextElement

```java
public Object nextElement()
```

**Returns:**
- 다음 순서의 객체.

**Throws:**
- `NoSuchElementException` - 더 이상 객체가 없을 때 발생.

***AromaSoft Corp. Proprietary and Confidential***

*(C)opyright 2003 AromaSoft Corp. All right reserved. 
Contact : [contact@aromasoft.com](mailto:contact@aromasoft.com)*
