12th Feb 2020, 3:01 AM
Dev Jharbade
Dev Jharbade - avatar
2 Answers
+ 1
Doesn't work in SoloLearn or anywhere? It would help if you provided more details, e.g. error message (if any), what input was given etc. So audience know where to focus on. And please tag your language specifics (Java) 👍
12th Feb 2020, 8:54 AM
Ipang
0
Yes. Be some more specific to question... You are using split method to split input into words, words can't divible by a number or with any.. If you trying to input to separate characters array, then use char array, fill with chars or use toCharArray function. Else use Integer.parseInt method..
12th Feb 2020, 10:08 AM
Jayakrishna 🇼🇳