Код: Выделить всё
public interface Box extends Serializable {
String getLabel();
T getContent();
}
< /code>
public class BananaBox implements Box {
private String label;
private Banana content;
public String getLabel() {
return label;
}
public Banana getContent() {
return content;
}
}
< /code>
Then I'm using these classes in a method :
public void openAllBoxes(Set boxes) {
}
public class do() {
this.openAllBoxes(mySet)
}
< /code>
My IDE intelliJ was highlighting SetКод: Выделить всё
public void openAllBoxes(Set boxes) {
}
< /code>
However now my method openAllBoxes(mySet)Я не понимаю, что должно быть сделано и почему.
thx!
Подробнее здесь: https://stackoverflow.com/questions/755 ... ethod-java