0

String cannot be converted to Char, but I never tried to

Compiler thinks char array is a string array. Why is this happening? https://code.sololearn.com/cdAfGP74GEV4/?ref=app

5th Nov 2021, 12:28 PM
Billy Beagle
6 Réponses
+ 2
Martin Taylor Thanks for the help!
5th Nov 2021, 12:33 PM
Billy Beagle
+ 1
Martin Taylor So we cannot work with chars using arraylists or vice versa? That would mean we cannot change the length of a char array, right?
5th Nov 2021, 1:22 PM
Billy Beagle
0
Martin Taylor Apparently there's still one more error at line 9, "unexpected type". Why is that?
5th Nov 2021, 12:38 PM
Billy Beagle
0
Nevermind, I just found out how to turn char into character (primitive data into class).
7th Nov 2021, 7:32 AM
Billy Beagle