import java.awt.*; import java.io.*; import java.awt.event.*; public class wordComp{ public static void main(String args[]){ int viga = 0; int i = 0; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String son1 = new String(); String son2 = new String(); try { System.out.println("Sisesta esimene sõna"); son1 = in.readLine(); System.out.println("Sisesta teine sõna"); son2 = in.readLine(); } catch (Exception e){} if (son1.equals(son2)){ System.out.println("Sõnad on identsed"); } else { for (i=0; i