Answers for "how to get individual words from a string in java"

0

how to get individual words from a string in java

{
public static void main(String args[])
{
String str = "Hey this is Ram";
String [] words = str. split(" ", 3);
for (String word : words)
System. out. println(word);
Posted by: Guest on May-10-2020

Code answers related to "how to get individual words from a string in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language