title: String cannot be converted to String[] in java
body: <p>I am new in java. I need to store user input (String) to the string array for some project. I have done the following code but the error is String cannot be converted to String[].</p>
  
  <pre><code>public class Customer {
  
      final int NUMBER_OF_CUSTOMER = 7;
      int MIN_BUY_AMOUNT = 10;
      int MAX_BUY_AMOUNT = 400;
  
      private String[] name = new String[10];
      private float[] purchaseAmount = new float[10];
      private float[] total = new float[10];
  
      public Customer() {
          System.out.println("Welcome to Groccery");
      }
  
      public void setCustomerName(int count) {
          System.out.print("Enter the name for Customer " + count + ": ");
  
          Scanner in = new Scanner(System.in);
  
          name = in.nextLine();
      }
  }
  </code></pre>
  
  <p>help me!!!</p>