How can i return words from a string array one by one : I want to return words from a String array  one after the other.


    public String CurrentString(int move) {
		int currentString = 0;
		currentString  ;
		EditText ed = (EditText) findViewById(R.id.ed);
		String[] strings = ed.getText().toString().split(" ");
		int newString = currentString   move;   
		if (newString >= strings.length) {

			// if the new position is past the end of the array, go back to the beginning       
			
			newString = 0;  
			} 
		if (newString < 0) {

			// if the new position is before the beginning, loop to the end      
			newString = strings.length - 1;    }    
	 currentString = newString;  
	Toast.makeText(getApplicationContext(), strings[currentString],Toast.LENGTH_LONG).show();
		return strings[currentString];	
	}


the problem is that my above code doesn't return all texts. Please help.