split with scquere braket in java

Java
line.split("\\[");
Source

Also in Java: