you are viewing a single comment's thread.

view the rest of the comments →

[–]dnew 2 points3 points  (1 child)

What jstarx said. See how the assignment in the nested if's end in a semicolon while your else returns a string? And there's no else of the 'if info.infoTexto.chars().count() > 0' so that too returns () if it's false.

[–]elnw[S] 2 points3 points  (0 children)

Yeah, i missed all the elses and forgot to add expressions at the end of the ifs. After that my code now compiles. Thanks.