Does anyone know how I can randomly generate an input string into a picture on the horizontal and vertical axis?
public static String change(Graphics B) {
Scanner termIn = new Scanner(System.in);
System.out.print("User, please give me a string to print:\n\t");
String in = termIn.nextLine();
String s1 = in;
String civic = s1.replace("car", "karr").replace("cool","crazy")
.replace("the","teh").replace("red","blue").replace("kouki","cookie")
.replace("nissan", "datsun").replace("s14","silvia").replace("drift","slide")
.replace("laugh","LOL").replace("240sx", "sr20").replace("drive","shift");
System.out.println(civic);
B.drawString(civic, 60, 259);
return s1;