This commit is contained in:
Joaquin Gottlebe
2025-07-30 15:57:48 +02:00
parent e49fcfac46
commit a639c34cee
273 changed files with 20151 additions and 0 deletions
@@ -0,0 +1,32 @@
import java.util.TreeMap;
public class BaumMap {
public static void main(String[] args) {
int n = 17;
TreeMap<Integer, Integer> baumMap = new TreeMap<>();
for (int i = 0; i < n; i++) {
baumMap.put(i, i * 2);
}
for (Integer value : baumMap.values()) {
System.out.println(value);
}
Integer c = null;
for (Integer value : baumMap.values()) {
if (value > n) {
c = value;
System.out.println(c);
break;
}
}
var d = baumMap.pollFirstEntry();
System.out.println(d.getValue());
}
}