i have created an array named as brand and also created an if else statement. I want whenever a user put the value from array, the if else statement will print the statement i have witten below, my code is given below
import java.util.Scanner;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
    
   Scanner sc = new Scanner (System.in);
   String[] brand = {"phone","mobile","cell"};
   System.out.print("find me some ");
   String product = sc.next();
   if (product == brand) {
       System.out.println("please enter your brand, Phone brands available : Apple, Samsung");
   }
    }
}
please help me out in the code given below
 
     
    