Search:

Type: Posts; User: centralguide

Search: Search took 0.08 seconds.

  1. Re: problem with toString and boolean operator

    if I write
    return channelName[channel];

    it gives me compilation error. It says
    required: String[]
    found: String
  2. Re: problem with toString and boolean operator

    is it wrong?
  3. Re: problem with toString and boolean operator

    but channelName is based on channel number. so I cannot put a fixed number.Are you talking about public String[] getChannelName() section? TelevisionApp program is controlling the value. Could you...
  4. Re: problem with toString and boolean operator

    I have confusion with array. i thought this will return only one value of array.......so i should write like return channelName[]; ....could you please help me how to return one value of array ?
  5. Re: problem with toString and boolean operator

    because if the channel number is 1, we want to display channel Name as "CBS". Since there are 10 channels that is why i am returning whole array using if statement. I dont know if that is the right...
  6. Re: problem with toString and boolean operator

    I dont know how to return array in toString method

    Also how do i print TV state On using toString method?
  7. Re: problem with toString and boolean operator

    i am getting
    TV set:
    channel No: 0
    Channel Name: j.lang.String.@4563467
    volume: 0
  8. problem with toString and boolean operator

    this compiles but i am not getting right output.......this is the output that i was hoping but somehow it is not getting right......can someone help me what is the problem with my code.

    public...
Results 1 to 8 of 8