i want to repeatedly replace e by o from the words Hello World to be Holle Werld
import java.awt.*;
import java.applet.*;
import java.lang.String;
import javax.swing.JOptionPane;
public class StringExercise1
{
public static void main(String[] args)
{
String textString;
textString = JOptionPane.showInputDialog("Enter a string:");
replaceAll(textString);
System.out.println();
System.exit( 0 );
}
public static void replaceAll(String text)
{
System.out.println("Here it is with the e and o swapped "
+ text.replaceAll("o","e"));
}
}