Incompatible Types: Arraylist Cannot Be Converted To String
I don't see what is wrong with my ArrayList that i get this error: Error:(133, 17) error: incompatible types: ArrayList cannot be converted to String i want to get all columns
Solution 1:
The type of returned value arrTblNames
is ArrayList
but the return type of getListOfFiltersName
is String
Hence the error so return type of getListOfFiltersName
method should be ArrayList<String>
instead of String
publicArrayList<String> getListOfFiltersName(){
or preferably public List<String> getListOfFiltersName(){
Post a Comment for "Incompatible Types: Arraylist Cannot Be Converted To String"