i want to repeatedly replace e by o from the words Hello World to be Holle Werld
public class StringExercise1
public static void main(String args)
textString = JOptionPane.showInputDialog("Enter a string:");
System.exit( 0 );
public static void replaceAll(String text)
System.out.println("Here it is with the e and o swapped "
your function replaceAll should return String... as i can see you send string to function and than in function you replace all chars and than?... nothing...
So if you decide to use function for returning result than remake function like
public static String replaceAll(String text)
now add RETURN in end of function since you'll need to return value to parent class.
and than in line 14 where you call your function should be some changes.
in this line you call replaceAll whick now returns new formed string... So some string (or already defined textString) should receive new formed text.
i am using visual studio 2015 and trying to export data which i am importing through excel by the user selected Excel file. Now the importing part has been successfully completed i am using OLEDB Connection but Stuck in exporting the same data to a new Excel file. tried ...
I am creating a program that when you print an author, you must show all the information of all the books that the author has written. Add a new attribute in the Author class that will be "BooksWriting: List (Book)".
I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using ...