Check out example codes for "how to split string with dolor sign in java". It will help you in understanding the concepts better.

Code Example 1

String line = ...
String[] lineData = line.split("\\$");

Learn ReactJs, React Native from akashmittal.com