package jinjieshilie;
import java.io.*;
public class nullandkong {
public static void main(String[] args) throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));//System.in是键盘输入的字节,用InputStreamReader转换成字符流
String zfc="我是字符串";
zfc=br.readLine();//如果直接回车的话视为输出的是""
System.out.println(zfc);
System.out.println(zfc.equals(""));
System.out.println(zfc.equals(null));
}
}
时间: 2024-11-05 23:35:58