Check if a string contains characters entered in a array
I would determine if a string entered by the user contains only characters in the table lettresAleatoires. If a letter is different, it rejects what he wrote and asked to enter another string. Here's what I wrote until now, the code in the method verifierSiValide () is missing and this is the method I want to audit.
private final static char lettresAleatoires =
'R', 'B', 'O', 'V', 'J', 'F', 'I', 'N'
private static void demanderCombinaison() throws IOException
System.out.println("Entrez votre combinaison pour l'essai " + essai
+ " <enter> pour arręter");
CombinaisonEntree = r.readLine();
} while (CombinaisonEntree.length() != 4);
private static void verifierSiValide()