java code help pls
Go to solution
Solved by Strayuru,
Change:
String first = lukija.nextLine();
to
int first = lukija.nextInt();
and
if(first.equals(second)) {
to
if(first == second) {
And then try again, I haven't tested it.
-
Featured Topics
-
Topics
-
2
-
0
-
1
-
0
-
VinSen ·
Posted in New Builds and Planning2 -
1
-
Fahizzle ·
Posted in CPUs, Motherboards, and Memory0 -
7
-
INotPablo ·
Posted in CPUs, Motherboards, and Memory1 -
nugget1414 ·
Posted in General Discussion0
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now