First Line of a Javadoc Block
Given the lines of a /** ... */ documentation comment, print the first real content line: the first non-empty line of prose after /**, with any leading * and surrounding spaces removed. Ignore lines that are only /**, only */, or start with @.
Input: the first line is an integer N; then N lines forming the Javadoc block.
Output: one line — the first content line's text.
4 /** * Calculates the area of a circle. * @param r the radius */
Calculates the area of a circle.
- 1 <= N <= 50
- there is at least one content line
Hint 1
Trim the line, then peel off a leading "/**", a trailing "*/", and a leading "*".
Hint 2
Skip the line if it is now empty or starts with '@'.
Hint 3
The first line that survives is the summary; stop there.
Normalise each line by removing the Javadoc punctuation (/*, /, leading ). The first line that still has text and is not an @tag is the summary sentence. A single-line / ... / is handled by the same peeling steps.