estranged12
Broken In
I am trying to use the string.replace function to replace one character of a string to a sequence of others.
Like this
Say i have a simple string called draw.
String draw = "F";
System.out.println(draw);
draw.replace("F","F-F+F+F-F");
System.out.println(draw);
The output is
F
F
What do I do to allow it to change the F to F-F+F+F-F (and then later all the Fs in that string to be F-F+F+F-F recursively), because the string.replace function doesnt work.
Thanks
Like this
Say i have a simple string called draw.
String draw = "F";
System.out.println(draw);
draw.replace("F","F-F+F+F-F");
System.out.println(draw);
The output is
F
F
What do I do to allow it to change the F to F-F+F+F-F (and then later all the Fs in that string to be F-F+F+F-F recursively), because the string.replace function doesnt work.
Thanks