@@ -0,0 +1,1410 @@
+package Pacote;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.regex.*; %0A%0Apublic class Usuario %7B%0A%09private String email, nome, senha;%0A%0A%09public Usuario(String email, String nome, String senha) throws Exception %7B%0A%09%09this.setEmail(email);%0A%09%09this.setNome(nome);%0A%09%09this.setSenha(senha);%0A%09%7D%0A%09public String getEmail() %7B%0A%09%09return email;%0A%09%7D%0A%09%0A%09public String getNome() %7B%0A%09%09return nome;%0A%09%7D%0A%09%0A%09public String getSenha() %7B%0A%09%09return senha;%0A%09%7D%0A%09%0A%09public String setEmail(String email) throws Exception %7B%0A%09%09if (!validaEmail(email))%0A%09%09%09throw new Exception(%22E-mail invalido.%22);%0A%09%09return this.email = email;%0A%09%7D%0A%0A%09public String setNome(String nome) throws Exception %7B%0A%09%09if (nome == %22%22 %7C nome == null)%0A%09%09%09throw new Exception(%22Nome invalido.%22);%0A%09%09return this.nome = nome;%0A%09%7D%0A%0A%09public String setSenha(String senha) throws Exception %7B%0A%09%09if (senha.length() %3C 6) %0A%09%09%09throw new Exception(%22Senha muito curta%22);%09%0A%09%09if (senha.length() %3E 8) %0A%09%09%09throw new Exception(%22Senha muito longa%22);%0A%09%09return this.senha = senha;%0A%09%7D%0A%0A%09public boolean validaEmail(String email) %7B%0A%09%09Pattern p = Pattern.compile(%22%5E%5B%5C%5Cw-%5D+(%5C%5C.%5B%5C%5Cw-%5D+)*@(%5B%5C%5Cw-%5D+%5C%5C.)+%5Ba-zA-Z%5D%7B2,7%7D$%22);%0A%09%09Matcher m = p.matcher(email);%0A%09%09if (m.find()) %7B%0A%09%09%09return true;%0A%09%09%7D else %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public String dicaDeSenha(String dica) %7B%0A%09%09return dica;%0A%09%7D%0A%09%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22Usuario: %22 + getNome() + %22%5CnSeu e-mail: %22 + getEmail();%0A%09%7D%0A%7D%0A

Create Usuario.java