title: Error:(54, 91) error: incompatible types: int cannot be converted to String
body: <p>I'm trying to connect my app with server but getting an error. Please help!</p>
  
  <p>I'm trying to connect my app using volley library to the server,but whenever I try to run my code I get the following error</p>
  
  <blockquote>
    <p>incompatible types: int cannot be converted to String</p>
  </blockquote>
  
  <p>I tried changing from String to int, but it didn't help!</p>
  
  <pre><code>show.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
  
                      JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST,          **&lt;-------------error here**
                              showUrl, new Response.Listener&lt;JSONObject&gt;() {
                          @Override
                          public void onResponse(JSONObject response) {
                              try {
                                  JSONArray student = response.getJSONArray("student");
                                  for (int i=0;i&lt;student.length();i++){
                                      JSONObject students = student.getJSONObject(i);
  
                                      String firstname = students.getString("firstname");
                                      String lastname = students.getString("lastname");
                                      String age = students.getString("age");
  
                                      result.append(firstname+""+lastname+""+age+""+"\n");
                                  }
                                  result.append("==\n");
  
                              } catch (JSONException e) {
                                  e.printStackTrace();
                              }
  
                          }
                      }, new Response.ErrorListener() {
                          @Override
                          public void onErrorResponse(VolleyError error) {
  
                          }
                      });
                      requestQueue.add(jsonObjectRequest);
                  }
              });
          }
      }
  </code></pre>