import java.io.*; import java.util.StringTokenizer; public class html{ public static void main(String argumendid[]) throws IOException{ BufferedReader klaviatuur=new BufferedReader( new InputStreamReader(System.in) ); System.out.println("Sisesta html faili taustav„rvus inglise keeles: "); String varv=klaviatuur.readLine(); System.out.println("Palun failinimi kus on kirjas äpilased oma hinnetega: "); BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in) ); String pealkiri=sisse.readLine(); PrintWriter faili=new PrintWriter(new FileWriter("blankett.html")); faili.println(""+pealkiri+""); faili.println("\n

"+pealkiri+"

"); faili.println(""); sisse=new BufferedReader(new FileReader("nimed.txt")); String rida=sisse.readLine(); faili.println(" "); while(rida!=null){ StringTokenizer st=new StringTokenizer(rida, " "); while(st.hasMoreTokens()){ String sona=st.nextToken(); faili.print(" "); } faili.println("
"+sona); } rida=sisse.readLine(); faili.print("
"); faili.println(""); faili.close(); } }