MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / Main

Class Main

Programs/integers.java:1–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Main {
2 public static void main(String[] args) {
3 int one = 1;
4 int two = 2;
5 if (one == two) {
6 System.out.println("they are equal!");
7 } else {
8 if (one > two) {
9 System.out.println("one is greater than two");
10 } else {
11 System.out.println("two is greater than one");
12 }
13 }
14 int int1 = 3*3+1;
15 int int2 = 4*2;
16 if (int1 == int2) {
17 System.out.println("These integers are the same");
18 }
19 else {
20 System.out.println("These integers aren't the same");
21 }
22 while (int2 < int1) {
23 System.out.println("Int2 is still less than int1");
24 int2++; //Adds one to int2
25 }
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected