Write the method called replaceString which takes a String argument. The method will pick a random integer
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the method called replaceString which takes a String argument. The method will pick a random integer representing one of the characters in the String and returns a String that has that position in the String replaced with a "9".
ex
replaceString("Dude") returns "9ude" or "D9de" or "Du9e" or "Dud9"
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: