Change the return type of the method. I have been saying all along that method should be returning a String
Type: Posts; User: Junky
Change the return type of the method. I have been saying all along that method should be returning a String
I was pointing out that you answered your own question of what goes inside the square brackets.
Hello!!!!!!
Simple, put a number inside the square brackets.
No!
You only want to return a single channel name. If the channel is 1 you want it to only return CBS. Doesn't that make sense?
The toString method is calling the getChannelName method. Why is your getChannelName method returning the whole array of channel names instead of a single channel name?
BTW you can simplify you...
Channel Name: j.lang.String.@4563467
The getChannelName method returns the entire array and not a single name.
What output are you getting instead?
In future surround your code with code tags to retain formatting and make it easier to read.