public class OsandEs { public static void main(String [] args) { String text = "Hello, World!"; String tempText = text.replace("o","%"); String temp2Text = tempText.replace("e","o"); String newText = temp2Text.replace("%","e"); System.out.println("Switched: " + newText); } }