title: Incompatible type error int[] to int
body: <p>I am getting an error, incompatible types: int[] cannot be converted to int. Can someone explain why this is happening and what I need to do to fix it?
  Thanks for the help. Here is my code:</p>
  
  <pre><code>public static String readFinalQuestionBank() throws Exception
      {   
          File textFile = new File("C:\\Users\\Joseph\\Documents\\School Files - NHCC\\CSci 2002\\FinalQuestionBank_JosephKraemer.txt");  //file location
          ArrayList&lt;String&gt; question;
          ArrayList&lt;String&gt; answer; 
          ArrayList&lt;String&gt; category;
          ArrayList&lt;String&gt; topic;
  
  
          int[] i = new int[0];
          String[] structure = {"OO Programming", "Generics", "Bags", "Complexity &amp; Efficiency", "Stacks", "Recursion", "Sorts", "Queues",
                                "Lists", "Iterators", "Searching", "Associative Arrays/Hashing", "Trees/Heaps", "Graphs"};
  
          try
          {
              Scanner scan = new Scanner(textFile);                   //Scanner to import file
  
              while(scan.hasNextLine())                               //Iterator - while file has next line
              {
                  String qBank = scan.nextLine();                     //Iterator next line
                  String[] line = qBank.split("::");             //split data via double colon
  
                  question[i]++ = line[0];    //error is here!!
  
                  System.out.println(qBank);
  
              }
              scan.close();                  //close scanner
  
          }
          catch(FileNotFoundException e)
          {
               e.printStackTrace();
          }       
          return "";
      }//end method readFinalQuestionBank
  </code></pre>