title: How to eliminate Vowels from a string in java?
body: <p>I want to eliminate vowels from a String, I can eliminate them, but I fail to return them to <code>main()</code>. I got the exact output by using the following code.    </p>
  
  <pre><code>String string = "ajeIokluj";    
  String s = string.replaceAll("[aeiouAEIOU]","");   
  return s;   
  </code></pre>
  
  <p>It will be great if the required output came by using for loop.</p>