I need to convert a String to an array with objects (one object for each char of the string).
I have this code:
public void inputPin(String pin)
{
char[] charArray = pin.toCharArray();
for(int i = 0;i < charArray.length;i++)
{
}
}
I need to place inside the for loop a method like pressButton() and this method will receive as a parameter a String (that is one of the characters of the pin).
How can I get each of the characters of the array and use it as a parameter of the pressButton() method?