Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
