Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
 
PREVIOUS NEXT
Tagged: #individual #words #string #java
ADD COMMENT
Topic
Name
6+9 =