`
class GfG{
public String multiply(String a,String b){
String s = "0.0.0.0";
String[] str = s.split("\\.");
for(String p:str){
System.out.println(p);
}
return "";
}
}
` I am splitting "0.0.0.0" and "0.0.0.0.". In both the cases i m getting same array of strings i.e 4 "0" strings. Can someone explain how this split is working for the two above cases.