Answers for "Raw use of parameterized class 'ArrayAdapter'"

0

Raw use of parameterized class 'ArrayAdapter'

Use something like ArrayAdapter<Type> where "Type" is replaced with the actual type used by the ArrayAdapter.

For example:

ArrayAdapter<CharSequence>

As the warning says, this is because ArrayAdapter is generic, so you should specify the type it refers to so that the compiler can check that everything is good at compile time.

You can read more here.
Posted by: Guest on July-30-2021

Code answers related to "Raw use of parameterized class 'ArrayAdapter'"

Browse Popular Code Answers by Language