/** *@author Herki Sula */ import java.io.*; public class Sona2vord2{ public static void main(String argumendid[]) throws IOException{ String sona1="",sona2=""; int loeoigeid=0,ktrl=0; BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in) ); System.out.println("Sisesta yks sona"); sona1=sisse.readLine(); System.out.println("Sisesta see sona nyyd uuesti"); sona2=sisse.readLine(); if(sona1.equals(sona2)){ System.out.println("Oli kyll see sona"); } if(!sona1.equals(sona2)){ System.out.println("Ei olnud see sõna. Teeme natuke analüüsi"); if(sona1.length()==sona2.length()){ int i; for(i=0;isona2.length())&&ktrl!=1){ sona1=sona1.substring(0,sona2.length()); for(int k=0;k