Question: I need help with java please! this comes from building java programs, back to basics fourth edition. The main goal is to produce a program

I need help with java please! this comes from building java programs, back to basics fourth edition. The main goal is to produce a program that will strip all HTML tags from files inputted without using the string class method replaceAll() Chapter 6: Exercise #12, page 437 Specific instruction: This problem will require you to process lines from the file. You must continue until all lines have been read from the file. Use the Scanner class methods hasNextLine() and nextLine() to extract the lines as String objects. You can then use class String methods to search the line for the HTML tag pair characters < and >. I suggest you consider methods length(), indexOf(char), and substring(int,int) in a while loop to process each line extracted from the file. You will need to accommodate lines with multiple tags, including lines with only tags. For each line processed, output a line, even if there are only tag(s) on the line, in that case, the line is a blank line. Refer to the attached sample files with the converted results as a guide. The input files must be located in the directory C:\CS210DataFiles. Be aware, for String objects, the value returned by the non-static String method length() is the index of the last character in the String object. Finally, you are not to utilize the String class method replaceAll() in your solution.

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!