import java.io.*; import java.applet.Applet; import java.awt.event.*; import java.awt.*; public class tekstiuurimine extends Applet implements ActionListener{ TextField tf=new TextField("",100); TextField tf1=new TextField("",100); Button nupp= new Button("Kontrolli"); int arv=0; int arv1=0; int c=0; String margid="!?,.:;)(-"; int margiarv[]=new int[100]; public tekstiuurimine(){ Panel pan=new Panel(new GridLayout(2, 1)); pan.add(tf); pan.add(tf1); add (pan); add (nupp); nupp.addActionListener(this); } public void actionPerformed(ActionEvent e) { try{ BufferedReader sisse=new BufferedReader( new FileReader("katse.txt") ); String rida=sisse.readLine(); while(rida!=null){ rida=sisse.readLine(); for(int i=0; i