"String".equals [1]
内容が等しいか真偽します。
String s1 = "hoge"; String s2 = "text"; if (s1.equals(s2)) { System.out.println("true"); }