title: Replace SNMP4J Vector<VariableBinding> with ArrayList<String>
body: <p>Can somebody show the correct syntax to replace a vector with an ArrayList?</p>
  
  <p>Original code -</p>
  
  <pre><code>StringBuilder msg = new StringBuilder();
          msg.append(event.toString());
                  Vector&lt;? extends VariableBinding&gt; varBinds = event.getPDU()
                  .getVariableBindings();
  </code></pre>
  
  <p>Have tried -</p>
  
  <pre><code>List&lt;String&gt; variables = new ArrayList&lt;&gt;();
  for (VariableBinding binding : event.getPDU().getVariableBindings()) {
      variables.add(String.valueOf(binding.getVariable()));
  }
  </code></pre>
  
  <p>But multiple issues (diamond operator not supported, can convert ArrayList to String).  Netbeans / JDK1.6</p>
  
  <p>And tried -</p>
  
  <pre><code>ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;(varBinds) = event.getPDU().getVariableBindings();
  </code></pre>
  
  <p>But unexpected type, required variable found value, cannot find symbol variable varBinds.</p>
  
  <p>Thoughts appreciated</p>
  
  <p>Regards
  Active</p>