gpt4 book ai didi

java - 对变量 [Something] 的赋值无效

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

<分区>

我收到此警告,这是什么意思?

The assignment to variable name has no effect.

对于所有 3 个字段,我也遇到了同样的错误。完整代码如下:

public class Module {

private String name;
private int bind;
private Category category;

public Module(String name,int bind,Category category) {
}{
this.name = name; // The assignment to variable name has no effect
this.bind = bind;
this.category = category;
}

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