title: passing null value as a parameter in java
body: <p>i have a method to insert datas into an sq-lite db</p>
  
  <pre><code> public long InsertDetails(int Id,String BatchName,double Weight,
          double Yield)
  {
      ContentValues InsertContentValues = AssesmentInsertValues(Id,BatchName,Weight,Yield);
      return this.data.insert("tb_LabAssessment", null, InsertContentValues);
  }
  </code></pre>
  
  <p>from my main class i m passing values as a parameter to this above function, in some cases i want to pass weight and yield as null values.</p>
  
  <pre><code>String batchname;
  double weight;
  double Yield;
  dbAdapter.InsertAssesmentDetails(objClsProduct.getId(),batchname,weight,Yield)
  </code></pre>
  
  <p>how can i pass the values of weight and yield as null here.</p>