java找不到符号Objekt

时间:2013-12-19 10:42:00

标签: java

我在java中遇到了默认的“Objekt”类型的问题。我认为有可能命名一个类“Objekt”的属性,所以它需要任何类型的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"*/

}

提前谢谢。

3 个答案:

答案 0 :(得分:4)

Objekt应为Object(或者您可能错过了导入自定义Objekt

答案 1 :(得分:0)

它不是Objekt。它应该是Object;

答案 2 :(得分:0)

Object而非Objekt。我知道很少有地方可以写成'Objekt',但是谈论java编程......它拼写为'对象'