import java.io.*; public class Lehehunnik{ static String lehenimi(int lehenr){ String vahe=""; if(lehenr<100){vahe="0";} if(lehenr<10){vahe="00";} return "leht"+vahe+lehenr+".html"; } static String pildinimi(int pildinr){ String vahe=""; if(pildinr<100){vahe="0";} if(pildinr<10){vahe="00";} return "leht"+vahe+pildinr+".jpg"; } public static void main(String[] arg) throws IOException{ for(int i=2; i<=194; i++){ PrintWriter pw=new PrintWriter(new FileWriter(lehenimi(i))); pw.println( "\n"+ "\n"+ " \n"+ " Koolilood\n"+ " \n"+ " \n"+ " \n"+ " \n"+ " \"leht\"\n"+ "
\n"+ " \n"+ " \n"+ " \n"+ "
\n"+ " \n"+ "\n" ); pw.close(); } } }