Question: I have a text which I need to read word by word till ';' delimiter...
I have searched in many places and also i have read some chapters but I can't find any method to use... Please help!

string to read i.e 32; Potatoe; Vegetables; 21.30; 12.20; 15 21 32 45;

Answer: 
```
String s = "32; Potatoe; Vegetables; 21.30; 12.20; 15 21 32 45;";
String[] splittedWords;

splittedWords = s.split(";");

```

You can use the method split to seperate words along delimiters. It will return a list of Strings.
If you want to parse the values in the string to an Integer you can use this:

```
for (String string : splittedWords)
    {
        if(string.matches("[^a-z \\.]+")==true)
        {
            int value = Integer.parseInt(string);

            System.out.println(value);
        }
    }

```

the only integer in your samplestring is 32, though. Thats why this code will only output "32".
```
String text = "32; Potatoe; Vegetables; 21.30; 12.20; 15 21 32 45";
String[] words = new String[text.length()];
int initialIndex = 0,i=0;

while (initialIndex<text.length()) {
    words[i] = text.substring(initialIndex, text.indexOf(";"));
    i++;
    initialIndex = text.indexOf(";")+1;
    }

```

Now String of words contains all words in text.
You can access by 
 word.get(index);