问答详情
源自:3-4 Java中的比较运算符

运算符不知道那里写错了

public class HelloWorld{

    public static void main(String[] args) {

int a=16;

double b=9.5;

String str1="hello";

String str2="imooc";

System.out.println("a等于b:" + (a == b));

System.out.println("a大于b:" + (a 〉b ));

System.out.println("a小于等于b:" + (a 〈b));

System.out.println("str1等于str2:" + (str1 ==  str2 ));

}

}


提问者:慕粉2335471685 2017-01-28 21:44

个回答

  • 慕粉2140273880
    2017-01-28 21:49:49

    应该用英文大小写