validates them. The SerialNumber UML Class Diagram The fields first, second, and third are used

In this final project you examine the SerialNumber class, which is used by the Home Software Company to validate software serial numbers. A valid software serial number is in the form LLLLL-DDDD-LLLL, where L indicates an alphabetic letter and D indicates a numeric digit. For example, WRXTQ-7786-PGVZ is a valid serial number. Notice that a serial number consists of three groups of characters, delimited by hyphens. The class extracts the three groups of characters and validates them. The SerialNumber UML Class Diagram The fields first, second, and third are used to hold the first, second, and third groups of characters in a serial number. The valid field is set to true by the constructor to indicate a valid serial number, or false to indicate an invalid serial number. The table below describes the class’s methods. SerialNumber class’s Constructor The constructor accepts a string argument that contains a serial number. The string is tokenized, and its tokens are stored in the first second, and third fields. The validate method is called. isValid This method returns the value in the valid field. validate This method cal

💡 Buy the answer for only $12 Get it now →

ls the isFirstGroupValid, isSecondGroupValid, and isThirdGroupValid methods to validate the first, second, and third fields isFirstGroupValid This method returns true if the value stored in the first field is valid. Otherwise, it returns false. isSecondGroupValid This method returns true if the value stored in the second field is valid. Otherwise, it returns false isThirdGroupValid This method returns true if the value stored in the third field is valid. Otherwise, it returns false. A few items (hints) that you will need to consider for the SerialNumber Class; In addition to creating the serial Number Class, you will also create a SerialNumberTester that tests four strings, 1 is Valid and 3 are invalid; String serial1 = “GHTRJ-8975-AQWR”; String serial2 = “GHT7J-8975-AQWR”; String serial3 = “GHTRJ-8J75-AQWR”; String serial4 = “GHTRJ-8975-AQ2R”; Your Final Project is to be completed as a Java Project from your NetBeans or IntelliJ IDE. file must include in the NetBeans or IntelliJ Comment Section; If you are new to Java Development with NetBeans IDE 8.2 then you will JDK 8u121. ß This is the best solution!!!

💡 Buy the answer for only $12 Get it now →