title: How to solve the cannot resolve method 'put( int , int)' error
body: <p>I have a variable that I have declared as an int , I also have a public int method to retrieve the value of this variable as shown below</p>
  
  <pre><code> private static final int  TIME_SPENT = 0 ;
  
    public int getTimeSpent(){
          return this._timeSpent;
      }
  </code></pre>
  
  <p>However when I write the line of code that save to database I get an error that says <strong>"cannot resolve method put( int , int) "</strong></p>
  
  <pre><code>public void addAppRecord(AppUsageClass appUsageClass) {
          SQLiteDatabase db = this.getWritableDatabase();
  
          ContentValues values = new ContentValues();
          values.put(APP_NAME, appUsageClass.getName()); 
          values.put(TIME_SPENT, appUsageClass.getTimeSpent()); // line showing error
  
  
          db.insert(Usage_Table, null, values);
          db.close(); // Closing database connection
      }
  </code></pre>