import java.awt.*; import java.awt.event.*; import java.applet.*; public class Ema extends Applet implements ActionListener{ Button b = new Button("Fill"); TextField tekst = new TextField("aaaa"); public void init(){ add(tekst); add(b); b.addActionListener(this); } public boolean kasKaashaalik(String taht){ if((taht.compareTo("a") != 0) & (taht.compareTo("e") != 0) & (taht.compareTo("i") != 0) & (taht.compareTo("o") != 0) & (taht.compareTo("u") != 0) & (taht.compareTo("õ") != 0) & (taht.compareTo("ä") != 0) & (taht.compareTo("ö") != 0) & (taht.compareTo("ü") != 0))return true; else return false; } public void actionPerformed(ActionEvent e){ int i,j; String jutt = new String(); String taht = new String(); String lopp = new String(); jutt = tekst.getText(); Graphics g=this.getGraphics(); for(i=1; i <= jutt.length(); i++){ taht = jutt.substring(i-1,i); g.drawString(taht, 10*i,100); if((taht.compareTo("a") != 0) & (taht.compareTo("e") != 0) & (taht.compareTo("i") != 0) & (taht.compareTo("o") != 0) & (taht.compareTo("u") != 0) & (taht.compareTo("õ") != 0) & (taht.compareTo("ä") != 0) & (taht.compareTo("ö") != 0) & (taht.compareTo("ü") != 0)){ for(j = i+1;j <= jutt.length(); j++){ taht = jutt.substring(j-1,j); g.drawString(taht, 10 *j ,10*i); if(((taht.compareTo("a") != 0) & (taht.compareTo("e") != 0) & (taht.compareTo("i") != 0) & (taht.compareTo("o") != 0) & (taht.compareTo("u") != 0) & (taht.compareTo("õ") != 0) & (taht.compareTo("ä") != 0) & (taht.compareTo("ö") != 0) & (taht.compareTo("ü") != 0)) ^ (j == jutt.length())){ System.out.println(j); boolean jargmine=false; if(j == jutt.length()){j++;} if(j