void (Optional<String> str) { String val; if (str.isPrese<caret>nt()) { val = // line comment // another line comment str.get()//before trim .trim() /* block comment *//*block comment*/; } else { val = ""; } System.out.println(val); }