Search:

Type: Posts; User: Junky

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    Change the return type of the method. I have been saying all along that method should be returning a String
  2. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    I was pointing out that you answered your own question of what goes inside the square brackets.
  3. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    Hello!!!!!!
  4. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    Simple, put a number inside the square brackets.
  5. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    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?
  6. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    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...
  7. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    Channel Name: j.lang.String.@4563467

    The getChannelName method returns the entire array and not a single name.
  8. Replies
    15
    Views
    915

    Re: problem with toString and boolean operator

    What output are you getting instead?

    In future surround your code with code tags to retain formatting and make it easier to read.
Results 1 to 8 of 8