Hi, everytime is try to declare some sort of collection (for example list or set) I get the error-message "could not find symbol...".
Did you have the same problem? What shoud I do? I have this problem since yesterday.
package de.codegym.task.task08.task0801;
/*
HashSet für Pflanzen
*/
import java.util.HashSet;
public class Solution {
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
Set<String> set = new HashSet<String>();
set.add("Wassermelone");
set.add("Banane");
set.add("Kirsche");
set.add("Birne");
set.add("Cantaloupe");
set.add("Brombeere");
set.add("Ginseng");
set.add("Erdbeere");
set.add("Iris");
set.add("Kartoffel");
for(String text : set){
System.out.println(text);
}
}
}