Jump to content


Need Help In Methods


  • Please log in to reply
2 replies to this topic

#1 vlavan

vlavan

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 02 April 2008 - 03:38 PM

I need to make the coding below remove vowels add x


import javax.swing.JOptionPane;
import java.util.Arrays;
class words {
      
  String[] word = new String[3];
   public words() {
  
  int i;
String op = "";
  for(i = 0; i < word.length; ++i)
  
    word[i] = (String)JOptionPane.showInputDialog(null, "Please enter a word:");
Arrays.sort(word);
  for(i = 0; i < word.length; ++i)
    op += word[i] + "\n";
System.out.println(op);
}

public static void main(String[] args) {
  new words();

}

}


#2 DavyDog187

DavyDog187

    Member

  • Members
  • PipPip
  • 10 posts

Posted 03 April 2008 - 11:22 PM

sorry, but what exactly are you asking?

#3 Leion

Leion

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 07 April 2008 - 03:02 AM

QUOTE(DavyDog187 @ Apr 3 2008, 11:22 PM) View Post
sorry, but what exactly are you asking?


I think he is asking for someone to do his homework for him.