Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.List;
- import java.util.Scanner;
- public class Lista
- {
- private List<Zadanie> lista = new ArrayList();
- public static void main(String[] args)
- {
- Scanner odczyt = new Scanner(System.in);
- String nazwa = odczyt.nextLine();
- String typ = odczyt.nextLine();
- String waga = odczyt.nextLine();
- String czasPoczatkowy = odczyt.nextLine();
- String czasKoncowy = odczyt.nextLine();
- lista.add(new Zadanie(nazwa, typ, waga, czasPoczatkowy, czasKoncowy));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement