I need to replace all words given length by random substring of arbitraty lenght.For example, the length given word is 3, thus i need to replace "the" to "a"
String str = "Java is the best language in the world!";
String randomWord = "a";
//Manipulations
System.out.println(str);
// Outputs: Java is a best language in a world!