Show the output of the following code.
public class Test {
public static void main(String[] args) {
System.out.println("Hi, ABC, good".matches("ABC "));
System.out.println("Hi, ABC, good".matches(".*ABC.*"));
System.out.println("A,B;C".replaceAll(",;", "#"));
System.out.println("A,B;C".replaceAll("[,;]", "#"));
String[] tokens = "A,B;C".split("[,;]");
for (int i = 0; i
System.out.print(tokens[i] + " ");
}
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.