SyntaxFix
Write A Post
Hire A Developer
Questions
You should use contains not matches
if(nom.contains(".")) System.out.println("OK"); else System.out.println("Bad");