2013-12-19 124 views
1

我在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"*/ 

} 

谢谢你提前。

+1

这是'Object',而不是'Objekt'。如果你创建了一个'Objekt'类,你肯定错过了导入它。但我真的建议你改名。 – user2336315

回答

4

Objekt应该是Object(或者可能你已经错过了你的自定义Objekt进口)

0

Object不是Objekt。我知道有几个地方可以写成'Objekt',但是谈论java编程..它被拼写为'Object'