错在哪呢,求解!!!!!
public class bianma{
public static void main(String[]args){
boolean b=true;
int x=12;
double d=3.1415;
char c1,c2;
c1='\u534e';c2='e';
System.out.println("b="=b);
System.out.println("x=" =x);
System.out.println("d="=d);
System.out.println("c1="=c1);
System.out.println("c2="=c2);
}
}
[解决办法]
System.out.println("b="+b); //或者 ("b=" == b); 必须是个完整的表达式而不是赋值语句
System.out.println("x=" +x);
System.out.println("d="+d);
System.out.println("c1="+c1);
System.out.println("c2="+c2);