title: how to create datatype to get email as input from user in java
body: <p>I want to accept <code>email id</code> from the user as an attribute like other attributes like <code>name</code>, <code>id</code> etc. What is the procedure to create custom data type to accept email id from the users?</p>