What is the difference between chars() and codePoints() method in CharSequence interface?

I read javadoc, but don’t understand the differences, both of them return same result. Also can anyone explain what is ‘zero-extending’ means? Javadoc of chars() method Returns a stream of int zero-extending the char values from this sequence. Any char which maps to a surrogate code point is passed through uninterpreted. The stream binds to… Read More What is the difference between chars() and codePoints() method in CharSequence interface?

how show response of text view after clicking a button

I am trying to show response on screen using text view after clicking a button but getting error saying com.android.volley.toolbox.JsonObjectRequest cannot be cast to java.lang.CharSequence package com.example.volleydemo; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.android.volley.toolbox.Volley; import org.json.JSONException; import org.json.JSONObject;… Read More how show response of text view after clicking a button