problemem jest:
Cannot make a static reference to the non-static field flowers
import java.util.*;
public class A {
HashMap a;
public static B getB(){
B tmp = new B();
tmp.hashMapb = a;
return tmp;
}
}
Nie moge sie z tym uporac. Mam zmienic hashmapy w static methode, a tego nie moge zrobic:(
w main z obiektu tez nie moge.