public class HelloWorld{ public static void main(String[] args) { int a=16; double b=9.5; /** String str1="hello"; String str2="imooc";*/ //请教各位大神,为什么这里要用String,难道不能用其他代替吗? 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)); }}
添加回答
举报
0/150
提交
取消