day04
public class Demo05 {
public static void main(String[] args){
int a = 5;
int b = 6;
//字符串连接符 + String
System.out.println(a+b+"");
System.out.println(""+a+b);//字符串在前面会拼接
boolean c = true;
boolean d = false;
System.out.println("c&&d:"+(c&&d));
//三元运算符 ? :
String score = 80<60 ? "bujiege":"jige";//开发中很常见,便于理解
System.out.println(score);
}
浙公网安备 33010602011771号