Code:
public static String enStar(String word) {
Boolean fin = false;
String result = "";
for (int i = 0; i < word.length() + 2; i++) {
result += "*";
}
try {
return result;
}
finally {
// this code line runs always before the return, the same as defer in the
// swift programming language
System.out.println("why is this running twice ?!");
}
}
see comments in the function above
:fast: