Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import java.io.File;
  2. import java.io.FileNotFoundException;
  3. import java.util.Scanner;
  4. import java.io.PrintWriter;
  5.  
  6. public class zad3{
  7. public static void main() throws FileNotFoundException{
  8. File file = new File("liczby.txt");
  9. Scanner in = new Scanner(file);
  10. int i = 1;
  11. int n = in.nextInt();
  12.  
  13. while (in.hasNextLine()){
  14. int liczby[] = new int[n];
  15. System.out.println("Liczba "+i+" "+liczby);
  16. i++;
  17. }
  18.  
  19. PrintWriter zapis = new PrintWriter("wynik.txt");
  20. zapis.println("Wynik to");
  21. zapis.close();
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement