// determines whether user-specified strings are the same. 	
	
import java.util.*;	
	
public class StringTest {	
	// main(): application entry point	
	public static void main(String[] args) {	
		// set input stream	
		Scanner stdin = new Scanner(System.in);	
			
		// get strings of interest	
		System.out.print("Enter a string: ");	
		String s1 = stdin.nextLine();	
		System.out.print("Enter another string: ");	
		String s2 = stdin.nextLine();	
	
		// are the strings equivalent	
		if (s1.equals(s2)) {	
			System.out.println(s1 + " and " + s2 + " are the same");	
		}	
		else {	
			System.out.println(s1 + " and " + s2 + " differ");	
		}	
	}	
}	
