public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String b = sc.nextLine(); if(a.equals(b) == true) { System.out.println("The strings are the same"); } else{ System.out.println("The strings are different"); } } }