import java.applet.Applet; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.io.*; import java.util.*; import java.lang.String; public class pii extends Applet implements ActionListener{ TextField tekst=new TextField(10); TextField pii=new TextField(10); Button nupp=new Button(" Muuda "); public void init(){ add(tekst); add(nupp); add(pii); nupp.addActionListener(this); } public void actionPerformed(ActionEvent e){ String konsonant[]={"b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"}; String taht=tekst.getText().trim(); pii.setText(""); int x=0; while (x