added ws202425 courses
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
import java.util.*; //hashset, linked liste auch hier
|
||||
|
||||
public class Tree{
|
||||
|
||||
|
||||
public static void main(String args[]){
|
||||
Set<String> a = new TreeSet<String>();
|
||||
a.add("Aal");
|
||||
a.add("Tanne");
|
||||
a.add("Birke");
|
||||
a.add("Baum");
|
||||
|
||||
Iterator<String> iter = a.iterator();
|
||||
while (iter.hasNext()) {
|
||||
String s = iter.next();
|
||||
System.out.println(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user