Question: Write an app that has one text field, one label, and one button. The user can enter his or her email in the text field.
Write an app that has one text field, one label, and one button. The user can enter his or her email in the text field. When the user clicks on the button, the app checks if the email entered contains the @ character and a dot somewhere after the @ character. If it does, the label displays VALID, otherwise it displays INVALID in the label. The text field and the label should have their own separate style, each with a minimum of four attributes. Include a Model as in a Java Class with methods ie. get set. and Do not use XML.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
