string.replace

  1. estranged12

    String.replace

    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...
Top Bottom