Strings in Java are immutable, so you must re-assign the value returned from l.replace() to l. Otherwise, l will never be changed.


public class test {


static String l = new...