-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (26 loc) · 870 Bytes
/
Main.java
File metadata and controls
35 lines (26 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package Operators;
/**
* Created by robertsg on 11/19/2015.
*/
public class Main {
public static void main(String[] args) {
boolean isAlien = false;
if (isAlien == false) {
System.out.println("It is not an alien");
}
int topScore = 100;
if (topScore == 100) {
System.out.println("You got the high score!");
}
boolean isCar = false;
boolean wasCar = isCar ? true : false;
double firstValue = 20d;
double secondValue = 80d;
double resultValue = (firstValue + secondValue) * 25;
double theRemainder = resultValue % 2300;
if (theRemainder <= 200) {
System.out.println("Remainder Value : " + theRemainder);
System.out.println("Total was over the limit");
}
}
}