JAVA PROGRAM TO PRINT THE WORDS OF A STRING
To print the words of a string in Java , the best approach is to break the string into an array using the split() method and then iterate through the results. public class PrintWords { public static void main(String args[] ) { String str=”Gift is precious”;
JAVA PROGRAM TO PRINT THE WORDS OF A STRING Read More »