@@ -0,0 +1,477 @@
+public class AllStar %7B%0A  public static void main (String... args) %7B%0A    //Result: h*e*l*l*o%0A    System.out.println(allStar(%22hello%22));%0A  %7D%0A  %0A  public String allStar(String str) %7B%0A    int lastStar=str.lastIndexOf(%22*%22);%0A%09  return (str.length()==0 %7C%7C lastStar==str.length()-2)?str:allStar(str.indexOf(%22*%22)==-1?str.charAt(0)+%22%22.concat(%22*%22).concat(str.substring(1)):str.substring(0,lastStar+1).concat(%22%22+str.charAt(lastStar+1)).concat(%22*%22).concat(str.substring(lastStar+2)));%0A  %7D%0A%7D%0A

Create AllStar.java