title: Using abs () method in java. My compiler doesn't know the method
body: <p>I have a simple question, but i can't find a solution for it.</p>
  <p>I want to use <code>abs()</code> method, but it doesn't work. I'm always getting the error</p>
  <blockquote>
  <p>Cannot find symbol: method abs(int)</p>
  </blockquote>
  <p>I have already tried to use the method by including <code>&quot;import java.math&quot;</code> above the code. But that doens't work too.</p>