title: Java newbie facing elementary problems
body: <p>I'm a total newbie when it comes to programming and I'm writing in Java for the first time. It's for an assignment in college. I'm using NetBeans.</p>
  
  <p>You see I'm completely lost and have no idea what I could do to fix my problem. This is the problem I'm facing:</p>
  
  <p>1:
       <code>for (String edge : edges.elementSet())</code> - It says it cannot find the symbol 'elementSet'. What do I have to do to solve this problem?</p>
  
  <p>2:
       <code>myConnections.addAll(y.getListOfLinks(tagsOfTheCurrentPictureAsAnArray));</code> - Here, it says it cannot find the symbol <code>'tagsOfTheCurrentPictureAsAnArray'</code>, but I mentioned it before:</p>
  
  <pre><code>String[] tagsOfTheCurrentPictureAsAnArray = tagsOfTheCurrentPicture.split(",");
  for (String x : tagsOfTheCurrentPictureAsAnArray) {
  </code></pre>
  
  <p>What did I do wrong here?
  Full script:</p>
  
  <pre><code>public static void main(String[] args) throws FileNotFoundException, IOException {
      String myFile = "C:\\Users\\Nils\\Desktop\\Uni\\Let's go Digital\\Digital data in practise\\Lecture4\\Datasets\\WWII.csv";
      FileWriter myFileWriter = new FileWriter("C:\\nodes.txt");
      BufferedWriter myBufferedNodesWriter = new BufferedWriter(myFileWriter);
      FileWriter myEdgesWriter = new FileWriter("C:\\edges.txt");
      BufferedWriter myBufferedEdgesWriter = new BufferedWriter(myFileWriter);
      FileReader myFileReader = new FileReader(myFile);
      BufferedReader myBufferedReader = new BufferedReader(myFileReader);
      String Comma = ",";
      char Commaderps = Comma.charAt(0);
      CsvReader excellentCsvReader;
      excellentCsvReader = new CsvReader(myBufferedReader, Commaderps);
      String textDelimiter = "\"";
      char Backslash = textDelimiter.charAt(0);
      excellentCsvReader.setTextQualifier(Backslash);
      excellentCsvReader.setUseTextQualifier(true);
      excellentCsvReader.readRecord();
      HashMultiset&lt;String&gt; myTags = HashMultiset.create();
      HashMultiset&lt;String&gt; myConnections = HashMultiset.create();
      while (excellentCsvReader.readRecord()) {
          String[] values = excellentCsvReader.getValues();
          String tagsOfTheCurrentPicture = values[2];
          String[] tagsOfTheCurrentPictureAsAnArray = tagsOfTheCurrentPicture.split(",");
          for (String x : tagsOfTheCurrentPictureAsAnArray) {
              myTags.add(x);
          }
          myBufferedNodesWriter.write("Id,Label,Number");
          myBufferedNodesWriter.newLine();
          for (String tag : myTags) {
              myBufferedNodesWriter.write(tag);
              myBufferedNodesWriter.write(",");
              myBufferedNodesWriter.write(tag);
              myBufferedNodesWriter.write(",");
              myBufferedNodesWriter.write(myTags.count(tag));
              myBufferedNodesWriter.newLine();
          }
          myBufferedNodesWriter.close();
          myBufferedEdgesWriter.write("Id,Source,Target,Type,Weight");
          myBufferedEdgesWriter.newLine();
          Integer idEdge = 0;
          for (String edge : edges.elementSet()) {
              idEdge = idEdge + 1;
              myBufferedEdgesWriter.write(idEdge);
              myBufferedEdgesWriter.write(",");
              myBufferedEdgesWriter.write(edge);
              myBufferedEdgesWriter.write(",");
              myBufferedEdgesWriter.write("Undirected");
              myBufferedEdgesWriter.write(",");
              myBufferedEdgesWriter.write(String.valueOf(edges.count(edge)));
              myBufferedEdgesWriter.newLine();
          }
          myBufferedEdgesWriter.close();
      }
      Utils y = new Utils();
      myConnections.addAll(y.getListOfLinks(tagsOfTheCurrentPictureAsAnArray));
      System.out.println("Tag:" + tagsOfTheCurrentPictureAsAnArray[3]);
  
  }
  </code></pre>
  
  <p>}</p>