Ganesh Patekar wrote:I think It suppose to be I don't know what exactly you want to do but did you notice what happens when String str = "A"; Or str = ""; ?
I wasn't clear in my message. The problem currently being flagged is just the length() in
. So I took it to Eclipse to try and it works fine. It prints out "He".