Learning Goal: I’m working on a java question and need an explanation and answer

Learning Goal: I’m working on a java question and need an explanation and answer to help me learn.IF YOU NOT SURE How to do it correct 100% please do not bid!please check the attached file PLEASE DO IT FROM SCRATCH OTHERWISE IF COPIED I WILL REQUEST FOR A REFUND!!!! IT GETS CHECKED!!!!instructions are attachedPLEASE READ INSTRUCTIONS CAREFULLY!!!!Note: You are not allowed to use any library or module that supports regular expressions. Examples of such libraries/modules are re of Python and regex of Java or C++ are NOT allowed.
Requirements: as instruction suggests