// determines whether user-specified strings are the same. 	
	
import java.io.*;	
	
public class StringTest {	
	// main(): application entry point	
	public static void main(String[] args) throws IOException {	
		// set input stream	
		BufferedReader stdin = new BufferedReader(	
				new InputStreamReader(System.in));	
			
		// get strings of interest	
		System.out.println("Enter a string: ");	
		String s1 = stdin.readLine();	
		System.out.println("Enter another string: ");	
		String s2 = stdin.readLine();	
	
		// 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");	
		}	
	}	
}	

