Help!
String all = "1.10.2";
String[] allArray = all.split("[.]");
What I want to do is make string "1.10.2" into 000010001000002 as integer. 00001 00010 00002 so giving padding and making each number into 5 digits and combining them as one integer. What should i do after split()?
You can do it with split like so:
You can do it with streams like so:
You can also do it without explicitly splitting, something like: