title: Variable cannot be resolved to a variable
body: <p>Could you please help me with following code ? I've created a class with <code>static</code> method which should <code>return</code>  variable with type <code>ArrayList&lt;ArrayList&lt;String&gt;&gt;</code>. But I got an error in the <code>return</code> statement in the end of the function <code>run()</code>. It says that  <strong>data cannot be resolved to a variable</strong>...</p>
  
  <pre><code>    package com.ita;
  
  import java.io.BufferedReader;
  import java.io.FileNotFoundException;
  import java.io.FileReader;
  import java.io.IOException;
  import java.util.ArrayList;
  
  public  class ReadCSV {
  
      public static  ArrayList&lt;ArrayList&lt;String&gt;&gt; run() {
  
          String csvFile = "RSS_usernames.csv";
          BufferedReader br = null;
          String line = "";
          String cvsSplitBy = ",";
  
          try {
  
              ArrayList&lt;String&gt; RSSname = new ArrayList&lt;String&gt;();
              ArrayList&lt;String&gt; username= new ArrayList&lt;String&gt;();
  
               ArrayList&lt;ArrayList&lt;String&gt;&gt; data = new ArrayList&lt;ArrayList&lt;String&gt;&gt;();
              int i=0;
  
              br = new BufferedReader(new FileReader(csvFile));
              while ((line = br.readLine()) != null) {
  
                      // use comma as separator
                  String[] country = line.split(cvsSplitBy);
  
                  System.out.println("Country [code= " + country[0] 
                                       + " , name=" + country[1] + "]");
  
                  RSSname.add(new String(country[0]));
                  username.add(new String(country[1].trim()));
  
                   data.add(new ArrayList&lt;String&gt;());
                   data.get(i).add(country[0]);
                   data.get(i).add(country[1].trim());
  
                  i=i+1;
              }
  
              System.out.println(data.get(0).get(1));
  
  
  
          } catch (FileNotFoundException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          } finally {
              if (br != null) {
                  try {
                      br.close();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
              }
          }
  
          System.out.println("Done");
  
          return data;
        }
  }
  </code></pre>