谁能给瞅瞅 boolean 的用法对吗 ,这种错误是什么意思
import java.util.Scanner;
public class ChangLiang{
public static void main(String[] args) {
final String USER ="老周";
char MAN = '男';
char FEMAN='女';
boolean flag ;
System.out.println(USER);
Scanner s = new Scanner(System.in);
System.out.println("请输入性别:男or女");
if(flag=true)
System.out.println(s);
if(flag=false)
System.out.println(s);
}
}