Java
同じ文字列か比較 String test1 = "test1"; String test2 = "test1"; if (test1.equals(test2)) { System.out.println("一致"); } 特定の文字列が含まれているか比較 String test1 = "abctest1abc"; String test2 = "test1"; if (test1.contains(test2)) { S…
同じ文字列か比較 String test1 = "test1"; String test2 = "test1"; if (test1.equals(test2)) { System.out.println("一致"); } 特定の文字列が含まれているか比較 String test1 = "abctest1abc"; String test2 = "test1"; if (test1.contains(test2)) { S…