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));
}
}
张小明丶
qq_蚊香_0
qq_浮沉_30
相关分类