gpt4 book ai didi

java找不到符号对象

转载 作者:行者123 更新时间:2023-11-29 03:26:44 24 4
gpt4 key购买 nike

Java 中默认的“Objekt”类型有问题。我认为有可能将类“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"*/

}

提前致谢。

最佳答案

Objekt 应该是 Object(或者您可能错过了自定义 Objekt 的导入)

关于java找不到符号对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20679453/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com