Guessing that you want to split by the comma then this will make it
String toSplit = "LXI H, 2000H, MOV M A";
// this is a regular expression, you should study regular expressions too
String[] split = toSplit.replace(",", "").split(" +");
for (String s : split)
System.out.println(s);
Read the String class in the java API
9
solved Need some advice on split() method in Java [closed]