Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.13 KB

homework.md

File metadata and controls

42 lines (34 loc) · 1.13 KB

2018-10-24

  • create parent-child directories using Files (dir/subdir)
  • write content to dir/file1, dir/subdir/file2
  • Files.walk (recursively)
    • if file - print content to standard output
    • if directory, print name and continue traversal
  • delete one file
  • create temporary file

2018-10-24

  • age field deprecated
  • introducing dateOfCreation
  • getAge() reimplemented, using dynamic dateOfCreation-based calculation
  • implement a concurrent queue (slide 36) using generics
  • bootstrap and run 2 threads
    • one that pushes on stack
    • another that polls from stack, and prints to standard output

2018-10-23

Domain model:

  • package
  • class Person
  • class Company
  • interface / abstract class (that the classes above extend)
  • age (integer) __

Ceremonies:

  • Entry point class (main method)

Implementation:

  • Using lambda
    • populate person & company instances (generating number of age automatically)
    • assign them to type-safe collection(s)

Bonus::

  • implement helper class (utility class), that implements Comparator by (both domain classes) age
  • sort the collection(s)
  • print result to standard output