Hello
I would like to write a method called displayString() which takes a string as an argument and returns no result.
I already have a working method I wrote called displayCharacter() which takes a single argument of type char called aCharacter.
UpInLights is my class and when I create an instance of UpInLights:
UpInLights lights = new UpInLights() and then execute the following: lights.displayCharacter("V");
the letter V is displayed
The method displayString() must use the displayCharacter() method within its method. The displayString() method should iterate over the String that is to be
displayed. On each iteration the method should send a displayCharacter() message with the current element as its argument to the receiver.
The result will be the following: lights.displayString("HELLO"); will display HELLO
I am inexperienced and wouldn't know where to start so can't even post what I think is correct, but I am keen to learn and would love to know how this
mini exercise can be achieved.
Many thanks.