Collections.emptyNavigableMap(): This method is available in java.util.Collections class of Java.
Syntax:
<Object, Object> NavigableMap<Object, Object> java.util.Collections.emptyNavigableMap()
This method returns an empty navigable map.
Note: This map is serializable.
Parameters: NA
Returns: an empty navigable map.
Exceptions: NA
Approach
Java
import java.util.Collections;public class CollectionsemptyNavigableMap {public static void main(String[] args) {System.out.println(Collections.emptyNavigableMap());}}
Output:
{}
No comments:
Post a Comment