I had expected this to put 50.5 into part_diameter, 70 into part_length, and 10 into pin_diameter, but instead I get nothing in part_diameter, 5 in part_length, and 0 in pin_diameter.
Keep in mind that split() parameter is not just set of characters, it’s actually java regular expression. Some special characters have to be escaped to make it work. In this case you should use String[] slices = getSettings().split("\\|");