how to write a program that will ask the user to enter 2 numbers and then compare if the numbers entered are equal or not? And it also must have a message informing the user if the numbers are equal or not equal.

The output must be something like this:
Please enter the first number: 2
Please enter the second number: 3
2 and 3 are not equal

Please, I need some answers thank you so much!!

1 answer

whatever you need to do, someone has already done it and posted code snippets online. Just google the problem and you will find just what you need. I also find the online java documentation to be thorough and understandable.