Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

class Main {
    public static void main(String[] args) {
        int x, y;

        x = Integer.parseInt("1");
        y = Integer.parseInt("2");

        if (x > y) {
            System.out.println(x + ">" + y);
        } else if (x < y) {
            System.out.println(x + "<" + y);
        } else {
            System.out.println(x + "=" + y);
        }
    }
}