Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.List;
  3. import java.util.Scanner;
  4.  
  5. public class Lista
  6. {
  7.  
  8. private List<Zadanie> lista = new ArrayList();
  9. public static void main(String[] args)
  10.  
  11. {
  12. Scanner odczyt = new Scanner(System.in);
  13.  
  14. String nazwa = odczyt.nextLine();
  15. String typ = odczyt.nextLine();
  16. String waga = odczyt.nextLine();
  17. String czasPoczatkowy = odczyt.nextLine();
  18. String czasKoncowy = odczyt.nextLine();
  19. lista.add(new Zadanie(nazwa, typ, waga, czasPoczatkowy, czasKoncowy));
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement