Question PRG-JAVA-0049
MediumWhat is the output of this program?
public class Main {
public static void main(String[] args) {
String s = "a,b,,c";
System.out.println(s.split(",").length);
}
}
- A.
3
- B.
5
- C.
Sign up free to see the answer and a step-by-step explanation.