已在方法 main(java.lang.String[])中定义了变量 book
classAndor{publicstaticvoidmain(String[]args){booleana=true;booleanb=false;booleanc=t...
class Andor
{
public static void main(String[] args)
{
boolean a=true;
boolean b=false;
boolean c=true;
boolean book=a&c;
System.out.println("book="+book);
boolean book=a||b;
System.out.println("book="+book);
boolean book=!c;
System.out.println("book="+book);
} 展开
{
public static void main(String[] args)
{
boolean a=true;
boolean b=false;
boolean c=true;
boolean book=a&c;
System.out.println("book="+book);
boolean book=a||b;
System.out.println("book="+book);
boolean book=!c;
System.out.println("book="+book);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询