Write a java program to accept two numbers and check which is same or not

Write a java program to accept two numbers and check which is same or not. This is a Java program that accepts two integers and compares them to see if they’re equal. As input, enter two integer numbers. After that, we use the equal to operator to match both inputs. As a result, the output is generated appropriately. The Java Program to accept Two Integers and check if they Are equal can be found here.

import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int m, n;
Scanner s = new Scanner(System.in);
System.out.print("Enter the first number");
m = s.nextInt();
System.out.print("Enter the second number");
n = s.nextInt();
if(m == n)
{
System.out.println(m+" and "+n+" are same");
}
else
{
System.out.println(m+" and "+n+" are not same");
}
}
}

Enter the first number34
Enter the second number43
34 and 43 are not same