2021年3月3日星期三

How to change integer with 16 character to string

Im new here, can you guys help me how can I change my int character "1234567890123456" into String ?

Here is my code

private void loadContentDetail() {            StringRequest stringRequest = new StringRequest(Request.Method.GET, getString("url" + 1234567890123456,                  new Response.Listener<String>() {                      @Override                      public void onResponse(String response) {                          try {                              final JSONObject detail = new JSONObject(response);                              Log.d("content", detail.toString());                                // response                            } catch (JSONException e) {                              e.printStackTrace();                          }                      }                  },                  new Response.ErrorListener() {                      @Override                      public void onErrorResponse(VolleyError error) {                        }                  });          AppController.getInstance().addToRequestQueue(stringRequest, "content");      }  
https://stackoverflow.com/questions/66468375/how-to-change-integer-with-16-character-to-string March 04, 2021 at 11:59AM

没有评论:

发表评论