AsyncTask's doInBackground(Params… params)

前端 未结 3 1689
野性不改
野性不改 2020-12-05 05:06

I\'m unfamiliar with the parameter syntax in doInBackground(Params... params)

What is this type of thing called, and how do I utilize it?

3条回答
  •  生来不讨喜
    2020-12-05 05:43

    Params... params represents a vararg. It was added in J2SE5.0. It means you can pass any number of arguments or you can say array of arguments params[0]

    Thanks Deepak

提交回复
热议问题