Hi, this is not part of a homework assignment or anything like that even though it may look that way.
I'm trying to work myself through a day 4 exercise in the Learning Java in 21 days book and here's my question.
How can I print out every letter in my string one at a time and everytime the loop encounters an 'e' it places the e in brackets.
I can get the first part no problem. It is the brackets that I'm struggling with. The error message states: "char cannot be dereferenced."
My code is below. Many thanks.