title: Can't get constructor from different class within same package to be recognized.
body: <p>So these 2 files I am going to post are each in my DataBase package. The DBBinding class just needs to create an object with a string for the key and one for the value. Then the DBrecord is going to keep a collection of DBBindings that all have the same key string but diffrent value strings. For some reason I can not think/find the correct way to make a add method in DBrecord so that it calls the DBBinding class/objects constructor. </p>
  
  <p>This is the method that is supposed to add the binding:</p>
  
  <pre><code>private void addRecord(String key_, String value_)
  {
      //DBBinding myDBBinding=new DBBinding(key_, value_);//constructor not defined error
      //DBBinding myDBBinding(key_,value_);
      //DataBase.DBBinding myDBBinding=new DataBase.DBBinding(key_, value_);//constructor not defined error
  
  }
  </code></pre>
  
  <p>Here's the DBBinding code followed by the DBrecord code. </p>
  
  <pre><code>package DataBase;
  
  public class DBBinding {
  
      private String key;
      private String value;
  
      public void DBBinding(String key_, String value_)
      {
          String key =new String(key_);
          String value=new String(value_);
      }
  
      //public String toString()
      //{return key+": "+value;}
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>package DataBase;
  //package DataBase.*;
  import DataBase.*;//did not help ... ?
  
  public class DBrecord {
  
      boolean select;
      String key;
      //need some type of collection to keep bindings. 
  
      public void DBrecord()
      {
          DBrecord myRecord=new DBrecord();
          select=false;
      }
  
      private void addRecord(String key_, String value_)
      {
          //DBBinding myDBBinding=new DBBinding(key_, value_);//constructor not defined error
          //DBBinding myDBBinding(key_,value_);
          //DataBase.DBBinding myDBBinding=new DataBase.DBBinding(key_, value_);//constructor not defined error
  
      }
  
      public String toString()
      {
          //out put key first then all values in collection/group/record. use correct formatting. 
      }
  
  
  
  }
  </code></pre>