stringtest3.java

来自「清华大学辛运帏java程序设计第二版源代码」· Java 代码 · 共 13 行

JAVA
13
字号
class StringTest3{
	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 + -
显示快捷键?