+ 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
3 Answers
+ 8
ob.readline -> ob.readLine()
a.length -> a.length()
b.length -> b.length()
= (assignment) -> == (comparison)
+ 3
This compiles
https://code.sololearn.com/c4po9WU20qn2
+ 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?