Search:

Type: Posts; User: centralguide

Search: Search took 0.15 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...
  9. Replies
    5
    Views
    342

    Re: wont get right output

    Thank you very much......it worked once i added .00...........You are a life saver.....thank you very much once again
  10. Replies
    5
    Views
    342

    Re: wont get right output

    Thank you for your reply......

    I tried checking value using System.out.printf("%f",tax); and in all the place it shows 0.0000
    I don't know what is the problem...This is my second time using...
  11. Replies
    5
    Views
    342

    wont get right output

    //program to taxreturn

    import java.util.Scanner;

    public class TaxReturn

    {
    public static void main(String[] args)
    {
Results 1 to 11 of 11