Question: There are two forms of comments in Java The one line comments start anywhere in a given line with/and end at the end of the

 There are two forms of comments in Java The one line

There are two forms of comments in Java The one line comments start anywhere in a given line with/and end at the end of the line . The multi-lines comments start anywhere in a give line with/* and end However, sometimes, ..../are used as one line comments; e.g int data-42;/*this is the magic number/ Regardless of whether the /is right at the end of the line or followed by a few spaces or tabulations, we might have used a// comment instead in such situations Design a regular expression to allow us to use egrep to extract all lines from an arbitrary java file which are using such single-line *..."/comments. HINT-try to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!