1String string = "004-034556";
2String[] parts = string.split("-");
3String part1 = parts[0]; // 004
4String part2 = parts[1]; // 034556
5
1String textfile = "ReadMe.txt";
2String filename = textfile.split("\\.")[0];
3String extension = textfile.split("\\.")[1];