title: Two constructors at in the same class with different parameters
body: <p>In class 1 I make an instance :</p>
  
  <pre><code>  db = new AdapterDB (cal, rcarbohydrate, rfat, rprotein, getApplicationContext());
  </code></pre>
  
  <p>In class 2 I make an instace :</p>
  
  <pre><code>db = new AdapterDB (Bits, Truncation, Crossover, Mutation, Chromosomes, Generation, getApplicationContext());
  </code></pre>
  
  <p>In class AdapterDB I make the constructor :</p>
  
  <pre><code>private DatabaseHelper DBHelper;
      private SQLiteDatabase db;
  
      public AdapterDB(Context ctx)
      {
          this.context = ctx;
          DBHelper = new DatabaseHelper (context);
      }
  
      double Truncation;
      double Crossover;
      double Mutation;
      int Generation;
  
      private Context context;
  
      int indexOfChromosomes ;
      int indexOfGens;
      int gensNumber;
      int chromosomesNumber;
  
      String [][] population;
      double [] fitnesstotal;
  
      public AdapterDB(int Bits, double Truncation, double Crossover, double Mutation, int Chromosomes, int Generation, Context ctx)
      {
          this.indexOfGens = Bits;
          this.Truncation = Truncation;
          this.Crossover = Crossover;
          this.Mutation = Mutation;
          this.indexOfChromosomes = Chromosomes;
          this.Generation = Generation;
          this.context = ctx;
          DBHelper = new DatabaseHelper (context);
  
          population = new String[indexOfChromosomes][indexOfGens];
          fitnesstotal = new double [indexOfChromosomes];
      }
  
  double cal;
      double rcarbohydrate;
      double rfat;
      double rprotein;
  
      public AdapterDB(double cal, double rcarbohydrate, double rfat, double rprotein, Context ctx)
      {
          this.cal = cal;
          this.rcarbohydrate = rcarbohydrate;
          this.rfat = rfat;
          this.rprotein = rprotein;
          this.context = ctx;
          DBHelper = new DatabaseHelper (context);
      }
  </code></pre>
  
  <p>At constructor the value still there, there is a value on each variable, but when I want use it in some function at class AdapterDB, cal, rcarbohydrate, rfat, and rprotein is zero (0.0) why this can happen? and how to solve it? Thank you.</p>