0
Please... Explain the following code...
public class Main { public static void main(String[] args) { String a[] = "76.88.".split("\\.",-1); System.out.println(a.length); } } // The Output is 3 but How ?
3 Antworten
+ 3
"\\." dot as delimiter
-1 "the pattern will be applied as many times as possible"
"76.88." -> {"76", "88",""}
+ 1
ok now i am starting to understand...