We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550b289 commit 3a754cdCopy full SHA for 3a754cd
TreeMap.java
@@ -33,8 +33,15 @@ public static void main(String[] args) throws Exception {
33
34
// Unsopported Operation Exception
35
Map.Entry<Integer, String> f = tree_map.firstEntry();
36
- f.setValue("My Value");
37
System.out.println("First Entry: " + f);
+ Map.Entry<Integer, String> f1 = tree_map.lastEntry();
38
+ System.out.println("Last Entry: " + f1);
39
+ System.out.println(" " );
40
+ f.setValue("My Value");
41
+ System.out.println("After Change First Entry: " + f);
42
+
43
44
+ System.out.println("After Change Last Entry: " + f1);
45
46
}
47
0 commit comments