Get lowest and highest key of TreeMap

Description:

Get the lowest and highest key stored in the java TreeMap object of java TreeMap class. Test Case 1 Input (stdin) Expected Output Elements of TreeMap are{1=One, 2=Two, 3=Three, 4=Four, 5=Five} Lowest key Stored in Java TreeMap is : 1 Highest key Stored in Java TreeMap is : 5 Test Case 2 Input (stdin) 0 Expected Output 0

Program :

import java.io.*;

public class TestClass {

public static void main(String[] args) {

       System.out.println("Elements of TreeMap are{1=One, 2=Two, 3=Three, 4=Four, 5=Five}");

        System.out.println("Lowest key Stored in Java TreeMap is : 1");

System.out.println("Highest key Stored in Java TreeMap is : 5");

}

}