In Java, I need to split a string like “004-034556” using a delimiter (“-”), so that I end up with “004” and “034556” as two separate parts. What’s the correct way to perform a string split in Java, and how can I also check if the original string actually contains the delimiter before trying to split it?