Regex Java String Split by Single Asterisk
*
has special meaning in regular expressions. You have to escape it.
line.split("\\*");
Try this statement:
line.split("\\*");
It is because you used a "*", that is a regular expression. If you want to use this caracter, you need tu put something like that:
line.split("\\*");