I'm making a User class for an app I'm working on. I'm still new to this, so I don't know how can I make it work without necessarily making an interface as a base. I just want to make it as pure code. This is what I have so far:
import java.util.Scanner;
public class User {
String userID;
String firstName;
String middleName;
String lastName;
String email;
String passwd;
String birthday;
String address;
}
There needs to be a profile picture as well. How can I declare it?
For example, does the email have any restrictions? How do I know if it's a valid email address? (I'm planning on connecting to a SQL database via Xampp, and I'm using Android Studio as well.)