Question: Java problem need help! ---------------------------------------------------------------------------------------------------------------------------- Exercise. java: class Exercise1 { /** A simple static string for HTML & table header. */ private static final String

Java problem need help!

Java problem need help! ---------------------------------------------------------------------------------------------------------------------------- Exercise. java: class Exercise1 { /** A

----------------------------------------------------------------------------------------------------------------------------

Exercise. java:

class Exercise1 { /** A simple static string for HTML & table header. */ private static final String HTMLHeader = " " + "

" + " " + "Exercise 1 " + " " + "

" + " "; /** A simple static string to print HMTL footer. */ private static final String HTMLFooter = "

" + "

" + "

------------------------------------------------------------------------------------------------------------

simple static string for HTML & table header. */ private static final

----------------------------------------------------------------------------------------------------------------------

String HTMLHeader = " " + " " + " " +

Exercise: A paragraph consists of a set of lines of text separated by one-or-more empty lines (i.e., empty strings, see java.lang.string.isEmpty method). You are expected to modify the supplied Exercise1.java to print just the last lines of each paragraph in HTML format (use exactly the same format already setup for you) Sample input and output (additional tests cases will be run by in Canvas CODE plug-in) Note: Inputs and outputs are shown separately below to ease copy-pasting inputs. In practice. inputs and outputs will appear intermixed on your console and that is just fine Sample input (blank lines intentional. See paral.txt): para #1 welcome para #2 : Intr ducti n This is a siple test line to create a 2 1ine para conclusion of inputs This para is the last para It has 3 1ines 3 lines including this one and 3 blank lines at end Last paragraph with 1 1in CSE-278: Exercise 1

weicome. 3 lines including this one and 3 blank lines at endk/tdx/tr> Last paragraph with 1 line/tr> para #1 welcome para #2: Introduction This is a simple test line to create a 2 line para conclusion of inputs This para is the last para It has 3 lines 3 lines including this one and 3 blank lines at end Last paragraph with 1 line para #1 welcome para #2: Introduction This is a simple test line This paragraph has 4 lines in total Last line of 1st paragzaph para #3 : Conclusion This para is the last para It has 3 lines 3 line s including this one and 3 blank lines at end para #4: Appendix Last paragraph with 1 line
^ create a 2 line para

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Problem Solution Extract Last Lines of Each Paragraph Problem Overview Goal Modify the Exercise1 class to Read lines of text input Treat consecut... View full answer

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!