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 3 of 3

Thread: Program using ternary operator.

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Location
    Ranchi, jharkhand India.
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Program using ternary operator.

    Write a program to find maximum between three numbers using ternary operator.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Program using ternary operator.

    Is that your assignment?
    What have you tried?

    Start by working out the logic using if/else statements, then convert it.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Program using ternary operator.

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

Similar Threads

  1. Ternary operator
    By JRoberto in forum Other Programming Languages
    Replies: 8
    Last Post: December 29th, 2013, 06:33 PM
  2. Need to use mod operator to complete printSquare program
    By mccoyca in forum What's Wrong With My Code?
    Replies: 21
    Last Post: March 25th, 2013, 07:43 AM
  3. How to use final operator.
    By javapenguin in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 9th, 2011, 06:57 PM
  4. Error with OR operator
    By tarkal in forum Loops & Control Statements
    Replies: 3
    Last Post: September 4th, 2011, 02:49 PM
  5. about Operator Precedence
    By degar in forum Java Theory & Questions
    Replies: 6
    Last Post: August 12th, 2011, 01:57 AM