4-6.txt

来自「清华大学第二版」· 文本 代码 · 共 14 行

TXT
14
字号
class StringTest{
	public static void main(String args[]) {
		String str = "This is the first string.";
?
		boolean result1 = str.equals("This is the first string.");
		boolean result2 = str.equals("this is the first string.");
		boolean result3 = str.equalsIgnoreCase("this is the first string.");
?
		System.out.println("result1 = " + result1);
		System.out.println("result2 = " + result2);
		System.out.println("result3 = " + result3);
	}
} 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?