Answer the question
In order to leave comments, you need to log in
What are the parameters in splte?
I solve problems on codewars, and in one solution I saw
public static String[] solution(String s) {
s = (s.length() % 2 == 0)?s:s+"_";
return s.split("(?<=\\G.{2})");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question