Java - Strings substring method demo

preview_player
Показать описание
This method shows how to use the built in substring method in java

This is a video response to the question about how to break a four word sentence into individual words
Рекомендации по теме
Комментарии
Автор

couldn't have asked for a better explanation.

whed.
Автор

I think you are asking how to separate a String consisting of four words into four unique Strings?

One way to do this is
1) Find the location of the spaces in the String. Using the indexOf method
2) Store the index of each space in a variable
3) Use the substring method to pull out each word.

I will make a video of this when I have a moment.

paulmiskew
Автор

i want to use this method to read the file data t i do not know how please help me thanks.

manalaouf
Автор

What if I create a program that you choose any 4 words to put in. How to I separate each word in the sentence?

Wildcatfancooper
Автор

may you write this site which include all the methods ??
i was able to go through docs.oracle.com but i can't find the methods

omarghazy
Автор

Hi,

I don't seem to see the make a video response option so I have put a link in the video description.
P.

paulmiskew
visit shbcf.ru