Check out example codes for "java string split underscore". It will help you in understanding the concepts better.

Code Example 1

String original = "Hello_Test_World";
String[] stringParts = original.split("_");

Learn ReactJs, React Native from akashmittal.com