+ 2

My code is not working ,I have tried a lot and had tried many methods but my code is not working , please help me to get working

https://code.sololearn.com/cByVC30U5EFd/?ref=app

28th May 2018, 2:42 AM
Raj gupta
Raj gupta - avatar
3 Réponses
+ 8
ob.readline -> ob.readLine() a.length -> a.length() b.length -> b.length() = (assignment) -> == (comparison)
28th May 2018, 2:58 AM
Hatsy Rei
Hatsy Rei - avatar
28th May 2018, 12:05 PM
John Wells
John Wells - avatar
+ 1
use import java.util.Scanner; I think you wanted to define a and b as integers (int). why not using System.out.println(a.nextInt()); ? a.length()? is this really an array?
28th May 2018, 7:25 AM
Bob
Bob - avatar