question 26/29 add .java file link

This commit is contained in:
Xevion
2020-01-25 01:42:31 -06:00
parent df9aeaa8f6
commit eb2b0a0e69

View File

@@ -441,6 +441,10 @@ Matches!
This is a rather long problem, so let's split it up into parts.
Also, see the relevant .java file created custom for this question.
[question26.java](./question26.java)
### Class X
Class X is a implementation of the Comparable Interface, and is essentially a method for comparing Strings when sorted. Focus on the `compareTo` method.
@@ -515,6 +519,10 @@ q.peek();
Be sure to read up on how Queues work, specifically the ordering, this can be very confusing and it will help to learn this, along with Comparators & Collections in general.
Take a look at the relevant java file to test it yourself!
[question29.java](./question29.java)
## Question 30
This is pretty simple referencing stuff, but it gets very complicated on tests, so I recommend looking up stuff on "Pass by Value" and "Pass by reference" in Java, it's a whole topic of debate in conjunction with immutability, mutability, wrappers, primitives, objects, and more.