This repository has been archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Completed solution #4
Open
tboychuk
wants to merge
56
commits into
master
Choose a base branch
from
exercise/completed
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add new test
Add Linked List exercise to the common list of exercises
# Conflicts: # README.md
# Conflicts: # linked-list/src/main/java/com/bobocode/LinkedList.java
# Conflicts: # linked-queue/src/main/java/com/bobocode/LinkedQueue.java
shryhus
reviewed
Oct 25, 2018
|
||
private static Path createPathFromFileName(String fileName) { | ||
Objects.requireNonNull(fileName); | ||
URL fileUrl = FileReaders.class.getClassLoader().getResource(fileName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"getResource()"
Does this method retrieve a "resources" folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only, in our case files from folder resources
will be in the classpath, and that method allows to get a URL
object of any kind of resource (any file) by its name.
You can check its javadoc for more details.
Ticket/#6 completed
# Conflicts: # concurrent-linked-queue-simple/src/main/java/com/bobocode/ConcurrentLinkedQueue.java
# Conflicts: # crazy-lambdas/src/main/java/com/bobocode/CrazyLambdas.java
…ise-Completed GP-4 Complete CrazyOptionals exercise
# Conflicts: # crazy-streams/src/main/java/com.bobocode/CrazyStreams.java
# Conflicts: # lambda-math-functions/src/main/java/com.bobocode/Functions.java
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request is created in order to discuss the completed solution of the exercises. Feel free to ask any questions by adding comments to the PR ➕