Answered step by step
Verified Expert Solution
Question
1 Approved Answer
File java code First method: lineLengthControl: This method should check whether each line in the txt file is more than 80 characters, if it exceeds
File java code First method: lineLengthControl: This method should check whether each line in the txt file is more than 80 characters, if it exceeds 80 characters, add the error to the correct error code. (error code: "LINE_MUST_BE_SHORTER_THAN") Second method: line With Only Whitespace Control: This method checks whether any line in the txt file consists of only spaces and inserts the line numbers of the incorrect lines together with the corresponding error code. (error code: "LINE_WITH_ONLY_WHITE_SPACE") The third method is:check space at the end of a line This method checks whitespace at the end of the lines in the txt file and adds the line numbers of the incorrect lines together with the corresponding error code to the corresponding place. (error code: "NO_TRAILING_WHITE_SPACE").
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started