You are given a list of GreekLetter objects.
Print each element from this list on a new line.
Invoke the toString method to get the string representation of an object.
You are given a list of GreekLetter objects.
Print each element from this list on a new line.
Invoke the toString method to get the string representation of an object.
Sample Input 1:
Sample Output 1:
{letter='Gamma', position=3}
{letter='Omega', position=24}
{letter='Alpha', position=1}Create a free account to access the full topic