Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
- import java.io.PrintWriter;
- public class zad3{
- public static void main() throws FileNotFoundException{
- File file = new File("liczby.txt");
- Scanner in = new Scanner(file);
- int i = 1;
- int n = in.nextInt();
- while (in.hasNextLine()){
- int liczby[] = new int[n];
- System.out.println("Liczba "+i+" "+liczby);
- i++;
- }
- PrintWriter zapis = new PrintWriter("wynik.txt");
- zapis.println("Wynik to");
- zapis.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement