我在Java中遇到了默认的“Objekt”类型问题。我认为有可能命名一个“客体”类的属性,因此它将任何一种客体作为分配。错误是“找不到符号”,继承人代码:java找不到符号Objekt
class List{
private class Cell{
Objekt value;
Cell next;
Cell (Objekt value, Cell next){
this.value = value;
this.next = next;
}
}
/* Following Methods that use other Classes, so the code becomes very hard to follow,
so I'll leave them away because they dont seem to be the problem, as the error already
shows up at the first usage of the Type "Objekt"*/
}
谢谢你提前。
这是'Object',而不是'Objekt'。如果你创建了一个'Objekt'类,你肯定错过了导入它。但我真的建议你改名。 – user2336315