split symbol in java code example Example: how to split string with dolor sign in java String line = ... String[] lineData = line.split("\\$");