/* related posts with thumb nails */

Conditional Operator (ternary operator):

§ Conditional operator is an equivalent form of if-else structure.

§ It is called as ternary operator because it is used on three operands.

§ The general syntax of the ternary operator is shown below

The above expression evaluates statement1 or statement2 depending on the condition. If the condition is true statement1 gets executed; otherwise statement2 gets executed.


int x=30, y=40, big;

big = x > y ? x : y;

System.out.println(big); // prints 40

In the above example the variable named ‘big’ holds 40 as the condition ‘x>y’ is false, and value of ‘y’ is assigned to ‘big’.

Related Topics:


Anonymous said...

Like all video games you play against the home in a casino, it is nearly inconceivable to actually win in the long term|the lengthy run}. However, video poker offers variety of the} best payouts for a slots-type machine when performed well. In fact, when mixed with a great casino comp schedule, have the ability to|you possibly can} really make a profit outcome of} freebies given out. There are 9 forms of video poker that we discovered playable during our go to to Black Hawk casinos. The theoretical payback percentages proven within the following listing assume that the player is betting 카지노 사이트 5 coins and using perfect technique. You can simply win the video poker sport Deuces Wild, {as lengthy as|so lengthy as} may be} conscious of its major rules.

Post a Comment