.class Expected error in java : <p>I get only two errors of .class expected <a href="https://i.stack.imgur.com/2RcQt.jpg" rel="nofollow noreferrer">I am getting this error in my program</a></p>

<pre><code>String[] email= {"Sarangmemon8","Alimutaba626","Kali_denali"};
String[] pass= {"Sarang","Mujtaba","Kali"};
System.out.println("What is your name?");
String name = input.nextLine();
System.out.println("Hello! "+name +"Would you like to Login? y/n");
String ans = input.nextLine();
if(ans=="y"){

    System.out.println("Enter your Email: ");
    String username = input.nextLine(email[0][1][2]);
    System.out.println("Enter your Password: ");
    String password = input.nextLine(pass[0][1][2]);
    if(username == email[]) { 
        if (password == pass[]) {
            System.out.println("Hello Mr. " +name);

        }
        else
        System.out.println("Wrong password");
</code></pre>
