@Test public void test1() { String str = "Mr John Smith"; assertEquals("Mr%20John%20Smith", solution.replaceBlank(str)); }
public String replaceBlank(String string) { return string.replace(" ","%20"); }
Solution { public String replaceBlank(String string) { return string.replace(" ","%20"); } }
Solution { public String replaceBlank(String string) { return string.replace(" ","%20"); }  }
Solution { public String replaceBlank(String string) { return string.replace(" ","%20"); }  String replaceBlank(String string); }
Solution { public String replaceBlank(String string) { return string.replace(" ","%20"); }  String replaceBlank(String string);  }