public class Test2 { public static void main (String [] args) { boolean test; String s = "OneTwoThree"; if(s.contains("Two")) { System.out.println(" OK Trouvé ! "); } } }