Java mismatch between String and String[] -
i'm using java implement apriori algorithm 1 problem exists.
arraylist<string> l1=new arraylist<>();//l1 ... arraylist<string[]> lk1=l1;//lk-1
then warns that: cannot convert arraylist<string>
arraylist<string[]>
. how can solve problem?
they're different types. ignore collection , @ underlying type.
string str = "this string."; string[] array = str;
these 2 different types, unconvertable, t collection, collections unconvertable. basic concept here.
Comments
Post a Comment