Questions on Arrays in Java
I'm trying to make sort of a login area. Where if you input a username that's not listed in the array, it creates a new temp array with one more capacity, imports all of the username's array into the temp array, plus the user's inputed username into it, then copies that array to my usernames array to add the new user's username to the list of usernames and same for the passwords then. That way if a user is already created, you need the pass to get in. If the user isn't created, it prompts to make a new account. The first code i'm linking is just the basic user and pass part. It links to my myClass.java file if successful user/pass. which is reaper3 for user and Dustin for pass. The second code i'm linking (password protection 2) is with the full code not commented so it tests adding input to arrays. I keep getting errors though with the parts that's adding the inputted username and passwords to the arrays. Please help me out? Password Protection 1 = https://code.sololearn.com/c4yl84bVBOx1/#java Password Protection 2 = https://code.sololearn.com/cx4eCiJ5fBj6/#java