📄 caution.java
字号:
import java.lang.*;
public class Caution
{
public static void main(String[] args)
{
String s1 = "Help";
String s2 = "Helpless";
String s3;
System.out.println("The string s1 is: " + s1);
System.out.println("The string s2 is: " + s2);
s3 = s2.substring(0,4);
System.out.println("The string s3 is: " + s3);
if (s1 == "Help")
System.out.println("The first comparison returned a true.");
else
System.out.println("The first comparison returned a false.");
if (s1 == s3)
System.out.println("The second comparison returned a true.");
else
System.out.println("The second comparison returned a false.");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -