java 插入“赋值运算符表达式”以完成表达式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4468962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 06:31:44  来源:igfitidea点击:

insert "Assignment Operator Expression" to complete Expression

java

提问by Haythem

I am using Java and I have the error insert "Assignment Operator Expression" to complete Expression"

我正在使用 Java 并且我有错误插入“赋值运算符表达式”来完成表达式”

what is the meaning of this error?. Is there a List of all java error Messages and what they mean?

这个错误是什么意思?。是否有所有 Java 错误消息的列表及其含义?

thanks

谢谢

回答by aioobe

According to this pageyou're doing this

根据此页面,您正在执行此操作

  • Writing an assignment statement without the assignment operator:

    max ;          // Error, missing =
    

    Eclipse: Syntax error, insert "AssignmentOperator Expression" to complete Expression

  • 编写没有赋值运算符的赋值语句:

    max ;          // Error, missing =
    

    Eclipse:语法错误,插入“AssignmentOperator 表达式”以完成表达式

You should know though that the compile error messages are implementation dependent. The above applies for the Eclipse compiler. Suns javacwould for instance say

您应该知道编译错误消息是依赖于实现的。以上适用于 Eclipse 编译器。javac例如,太阳会说

YourFile.java:line: not a statement
max ;
^