Collections.emptyEnumeration(): This method is available in java.util.Collections class of Java.
Syntax:
<Object> Enumeration<Object> java.util.Collections.emptyEnumeration()
This method returns an enumeration that has no elements.
Parameters: NA
Returns: an empty enumeration.
Exceptions: NA
Approach
Java
import java.util.Collections;public class CollectionsemptyEnumeration {public static void main(String[] args) {System.out.println(Collections.emptyEnumeration());}}
Output:
java.util.Collections$EmptyEnumeration@26f0a63f
No comments:
Post a Comment