weibo_一直想走文艺范却未果_0
2016-01-12 11:42
void sendMessage(){
System.out.println("screen:"=screen+"cpu:"=cpu+"mem:"=mem+"Telphone有打电话的功能");
}
为什么我输入这个就报错,只有引号里面的单词好像是成员变量,没打引号的就不是,这个如何解决?
报错内容:
Multiple markers at this line
- The left-hand side of an assignment must be a
variable
- Syntax error, insert ")" to complete Expression
- Syntax error on token "+", ( expected after this
token
- The left-hand side of an assignment must be a
variable
你试试: System.out.println("screen:="+screen+"cpu:="+cpu+"mem:="+mem+"Telphone有打电话的功能");
Java入门第二季 升级版
530559 学习 · 6091 问题
相似问题