快捷键
ctrl+D,复制当前行到下一行
与或非
package org.example;
public class demo02 {
public static void main(String[] args) {
boolean a = true;
boolean b=false;
System.out.println("a&&b:"+(a&&b));
System.out.println(a||b);
System.out.println(!(a&&b));
int c = 5;
boolean d = (c<4)&&(c++<4);
System.out.println(d);
System.out.println(c);
}
}
package Scanner;
import java.util.Scanner;
public class Demo01 {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
System.out.println("请输入数据:");
String str = scanner.nextLine();
System.out.println("输出的内容为:"+str);
scanner.close();
}
}
标签:scanner,System,Scanner,println,public,out
From: https://www.cnblogs.com/5zqy/p/18570762