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 05 : Write Java constants #getajobinit
Repost
3 years ago
40
Learn to Program with Java version 11 - Part 05 : Write Java constants
https://github.com/garymcneelyit/javacourse
class Constants
{ public static void main ( String[] args )
{
// constant hockey.
final int HATTRICK = 3 ;
final int GOAL = 1 ;
final int ASSIST = 1 ;
//any word can go here
int ht , gl , as , total ;
ht = 2 * HATTRICK ;
gl = 2 * GOAL ;
as = 3 * ASSIST ;
total = ( ht + gl + as ) ;
System.out.println( " Points " + total ) ;
}
}
Loading comments...
-
1:35
getajobintech
1 year agoAnswer Question from a Subscriber: Thanks for explaining nicely.
9 -
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 -
7:06
getajobintech
3 years agoLearn to Program with Java version 11 - Part 11 : Write Java conditions #getajobinit
38 -
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