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();
}
}
Need Help In Methods
Started by
vlavan
, Apr 02 2008 03:38 PM
2 replies to this topic











