title: Checking if a string contains a dot
body: <p>Today I was trying to detect if a string contains a dot, but my code isn't working</p>
  
  <pre><code> String s = "test.test";
   if(s.contains("\\.")) {
       System.out.printLn("string contains dot");
   }
  </code></pre>