Split String in Java
There are different ways to Split the String in Java, out of which some common ways are shown to Split String in Java. Here in this Example We will Split the String using the String Split Method public class SplitString { public static void main(String[] args){ String str = “java-language”; String[] parts = str.split(“-“); String … Read more