Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean checkCompare(String nom,String pass) throws IOException {
- NewUser nwUser = new NewUser(nom, pass);
- for (String nomUser : IniciUsuari.usersList.keySet()) {
- IniciUsuari checl = new IniciUsuari(nomUser, IniciUsuari.usersList.get(nomUser));
- if (nwUser.compare(nwUser, checl) == 1) {
- nwUser.addText();
- return true;
- }
- }
- return false;
- }
- @Override
- public int compare(Object y, Object x){
- if(y.equals(x.getClass())){return 0;}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement