Hello Guys,
I'm trying to create a simple App to loop through an Array,from zero to end and
then loop from end to the initial
here is my code example:
String[] myList = {"Hello","How are you","Whats happening","Hope you are happy"};
int i = 0;
Then my onClick code;
while(i<=myList.length){
text.setText(view)
i++;
}
Finally i was able to loop through the Array from beginning to end,but Am unable to loop back.
I'm trying to create a simple App to loop through an Array,from zero to end and
then loop from end to the initial
here is my code example:
String[] myList = {"Hello","How are you","Whats happening","Hope you are happy"};
int i = 0;
Then my onClick code;
while(i<=myList.length){
text.setText(view)
i++;
}
Finally i was able to loop through the Array from beginning to end,but Am unable to loop back.
Last edited: