Skip to content

asilenko/helpers-3rd-ed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Helpers

You should share here your solutions to the task about helper classes from JDK.

Important
The main package for these solutions should be com.epam.prd.jjop.helpers.
Tip
You can add new dependencies and plugins to the pom.xml if necessary.

Goals

  1. Studying about helpers on your and the other’s code.

  2. Creating a source of the knowledge on the subject that you can come back to.

  3. Exercising work with shared repository and forks.

Task

  1. Fork the repository (button in the upper right corner of the main page).

  2. Create an issue with chosen topic in the main repository.

  3. Implement your solution to the task given to you during lecture about helpers.

  4. Create a commit with a meaningful message.

  5. Push the changes to a remote master branch on your fork.

    Note
    You don’t have to use a feature branch, only master is fine.
  6. Create a Pull Request to merge it to EPAM-Online-Courses/helpers-3rd-ed:master.

  7. Review code of the others.

YOU WILL NOW BE WORKING ON THE FORKED REPO, NOT ON THIS ONE, BUT ON YOUR GITHUB
COPY OF IT, CALLED THE FORK. WE REPEAT, YOU WILL NOW BE WORKING ON THE FORK.

Commands and task steps to do ON THE FORK. It's to be done ON THE FORK, ok?
NOT HERE, NOT IN YOUR LOCAL REPOSITORY.

Rules

  1. Your implementation shall not break any of the existing solutions.

  2. Your colleagues have to review your code and you should apply theirs remarks.

  3. PRs will be accepted ASAP once they are reviewed and we see they’re demonstrating API assigned to you during the lecture about helpers.

Tasks

  • Arrays.fill vs Arrays.setAll methods

  • Arrays.copy vs copyOf vs System.arrayCopy

  • How to make a Stream out of an array, a collection multiple ways

  • How to search and sort and print an array,

  • Arrays.mismatch and Arrays.compare[Unsigned]

  • Arrays.asList vs Collections.list vs List.of → how to have a MUTABLE list?

  • Collections.emptyList vs Collections.EMPTY_LIST

  • Collections: reversing, sorting, shuffling, swapping elements

  • Objects.all-methods-to-check-for-null-and-their-differences

  • empty methods on collections for maps and sets

  • unmodifiableMap vs Map.of

  • unmodifiableList vs List.of

  • Collections: fill, nCopies, addAll – and others how to quickly fill a collection?

  • Objects.all-methods-to-check-INDEXes-and-related

  • Comparing and Objects

  • Comparing and Arrays

  • Comparing and Collections

  • Equals, hashCode and Objects

  • Equals, deepEquals and Arrays

  • Equals, deepEquals and Objects

  • Equals, deepEquals and Collections

  • Other (write what will be your focus)

About

Helper classes in general are the kind of classes that are full of useful static methods. Interestingly enough, in most cases you are unable to instantiate them (e.g helpers from JDK itself).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%