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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -