String String1 = new String();
String1 = "bubble";
My method : DisplayLetter(char aChar);
If I execute
DisplayLetter(String1.charAt(0));
DisplayLetter(String1.charAt(1));
DisplayLetter(String1.charAt(2));
DisplayLetter(String1.charAt(3));
DisplayLetter(String1.charAt(4));
DisplayLetter(String1.charAt(5));
it will display
b
u
b
b
l
e
I would like to be able to achieve the above by using a loop:
for (int count = 0; count < String1.length; count++)
DisplayLetter(String1.charAt(?));
Can you advise one correct format.
rgds.