Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Need help

  1. #1
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need help

    Hello, I'm new in programming with Java, i learnt today about if, else if, else and i've got some homework. But one of the tasks is the following: I need to type 3 numbers and if they are euqal to get "yes" and if they are not to get "no". I just don't get how to do this and there's a hint that says to look for information for &&, but i haven't learnt about this or i've missed it . Would be happy if someone of you helps me out a little bit.

  2. #2
    Member
    Join Date
    Sep 2018
    Location
    Virginia
    Posts
    284
    My Mood
    Cool
    Thanks
    0
    Thanked 38 Times in 36 Posts

    Default Re: Need help

    This is basic Java so you should check out the tutorials in my signature. The questions you raise are covered in there.

    Regards,
    Jim

  3. #3
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    252
    My Mood
    Amused
    Thanks
    8
    Thanked 17 Times in 17 Posts

    Default Re: Need help

    I think is similar to this?

    If((num1 == num2) && (num2 == num3)){
          System.out.print("Yes");
    }
    Whatever you are, be a good one

  4. #4
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help

    Quote Originally Posted by John Joe View Post
    I think is similar to this?

    If((num1 == num2) && (num2 == num3)){
          System.out.print("Yes");
    }
    Exactly this! Thanks man !