Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
Learn to Program with Java version 11 - Part 11 : Write Java conditions #getajobinit
3 years ago
38
Learn to Program with Java version 11 - Part 11 : Write Java conditions
class Condition
{
public static void main(String[] args) {
int num1 = 4 ;
int num2 = 2 ;
String result ;
result = ( num1 % 2 != 0 ) ? " odd " : " even" ;
System.out.println(num1 + " is" + result );
result = ( num2 % 2 != 0 ) ? " odd" : "even" ;
System.out.println(num2 + " is " + result );
}
}
Loading comments...
-
2:19
getajobintech
1 year agoAnswer Question from a Subscriber: If I add Linux machine should I install media agent Linux machine
17 -
9:56
getajobintech
3 years agoLearn to Program with Java version 11 - Part 13 : Write Java bits #getajobinit
47 -
2:12
getajobintech
3 years agoLearn to Program with Java version 11 - Part 12 : Write Java precedence #getajobinit
44 -
4:00
getajobintech
3 years agoLearn to Program with Java version 11 - Part 09 : Write Java logic #getajobinit
92 -
5:23
getajobintech
3 years agoLearn to Program with Java version 11 - Part 08 : Write Java comparisons #getajobinit
34 -
4:56
getajobintech
3 years agoLearn to Program with Java version 11 - Part 07 : Write Java assignments #getajobinit
30 -
7:08
getajobintech
3 years agoLearn to Program with Java version 11 - Part 10 : Write Java literals #getajobinit
76 -
6:23
getajobintech
3 years agoLearn to Program with Java version 11 - Part 05 : Write Java constants #getajobinit
40 -
4:35
getajobintech
3 years agoLearn to Program with Java version 11 - Part 06 : Write Java math #getajobinit
28 -
6:13
getajobintech
3 years agoLearn to Program with Java version 11 - Part 04 : Write Java data types #getajobinit
61