; or ) expected error in Android studio while calling a function in main class from DBHelper class : <p>I am trying to call a function updatebudget from my DBHelper class,if the condition is true,I am getting the error :- or ) expected in the line- after Integer,String in every parameters..</p>

<p>Main Class-</p>

<pre><code>&gt; mydb.updateBudget(Integer idd,Integer phon, String bdat, String acc,
&gt; String det,  String with,  String dep, String acc, String breco);


Main Class-


&gt;  public void subjour(View V)
&gt;     {
&gt; 
&gt;         String with=bwithdraw.getText().toString();
&gt;         String dep=bdeposit.getText().toString();
&gt;         String acc=baccountname.getText().toString();
&gt;         String bdat=bdate.getText().toString();
&gt;         Bundle extras = getIntent().getExtras();
&gt;         String det=bdetails.getText().toString();
&gt;         String breco=brec.getText().toString();
&gt;         String phon=phone.getText().toString();
&gt;         int idd=0;
&gt; 
&gt; 
&gt;         if( (with.equals(""))&amp;&amp;(dep.equals(""))) {
&gt;             Toast.makeText(getApplicationContext(), "Please enter the deposit or withdrawl amount",
&gt;                     Toast.LENGTH_SHORT).show();
&gt;         }
&gt;         else if (!validateFirstName(acc)) {
&gt; 
&gt;             baccountname.setError("Please enter  valid  name");
&gt;         }
&gt; 
&gt; 
&gt; 
&gt; 
&gt;         else if(mydb.insertBudget(bdate.getText().toString(), &gt;bdetails.getText().toString(),
&gt;                 &gt;bwithdraw.getText().toString(),bdeposit.getText().toString(),baccountname.getTe&gt;xt().toString(),brec.getText().toString()
&gt;         )){
&gt;            mydb.updateBudget(Integer idd,Integer phon, String bdat, String acc, String det,  String with,  String dep, String acc, String
&gt; breco);
&gt;             Toast.makeText(getApplicationContext(), "journal created",
&gt;                     Toast.LENGTH_SHORT).show();
&gt;         } else{
&gt;             Toast.makeText(getApplicationContext(), "not created",
&gt;                     Toast.LENGTH_SHORT).show();
&gt;         }
&gt; 
&gt;     }
&gt;     }
</code></pre>

<p>DBHelper class-</p>

<pre><code>&gt; public boolean updateBudget(int idd,int phone, String bdate, String
&gt; baccountname, String bdetails, Integer bwithdrawl, Integer bdeposit,
&gt; String baccount, String brec) {
&gt;         SQLiteDatabase db = this.getWritableDatabase();
&gt;         ContentValues contentValues = new ContentValues();
&gt;         contentValues.put("bdate", bdate);
&gt;         contentValues.put("bdetails", bdetails);
&gt;         contentValues.put("bwithdrawl", bwithdrawl);
&gt;         contentValues.put("bdeposit", bdeposit);
&gt;         contentValues.put("baccountname",baccountname);
&gt;         contentValues.put("brec", brec);
&gt;         String selectQuery = "select id, phone from  " +  CONTACTS_TABLE_NAME;
&gt;         //Cursor res = db.rawQuery("select * from budget where idd=" + idd + "", null);
&gt;         Cursor cursor = db.rawQuery(selectQuery, null);
&gt; 
&gt;         if (cursor.moveToFirst()) {
&gt;             phone=  Integer.parseInt(cursor.getString(1));
&gt; 
&gt;         }
&gt; 
&gt;             phone +=bdeposit;
&gt;             phone =phone - bwithdrawl;
&gt; 
&gt;         cursor.close();
&gt;         db.close();
&gt; 
&gt; 
&gt;         //Your Update to SQLite
&gt;         db = this.getReadableDatabase();
&gt;         ContentValues values = new ContentValues();
&gt;         values.put(String.valueOf(phone), phone);
&gt;         db.update("budget", contentValues, "idd = ? ", new String[]{Integer.toString(idd)});
&gt;         db.update(CONTACTS_COLUMN_PHONE , values, idd + " = ?", new String[] { String.valueOf(phone) });
&gt;         db.close();
&gt;         return true;
&gt;     }
</code></pre>

<p>Please let me know where I am wrong-
Thanks in advance..</p>
