Kesetaraan panjang string

import java.util.Scanner;

public class StringLengthEquality {
    public static void main(String[] args) {
        Scanner S1 = new Scanner(System.in);
        Scanner S2 = new Scanner(System.in);
        String s1 = S1.nextLine();
        String s2 = S2.nextLine();
        if (s1.length()==s2.length()){
            System.out.println("true");
        }else {
            System.out.println("false");
        }
    }
}
Breakable Boar