-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add files via upload #1569
Add files via upload #1569
Conversation
Есть много сомнений но может первый блин не комом а экзешником) |
# Conflicts: # src/main/java/core/basesyntax/Bulldozer.java # src/main/java/core/basesyntax/Excavator.java # src/main/java/core/basesyntax/Machine.java # src/main/java/core/basesyntax/MainApp.java # src/main/java/core/basesyntax/Truck.java
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.
Исправил mainApp и по мелочи в классах |
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.
Overall is good. Need to change something.
public class Excavator extends Machine { | ||
@Override | ||
public int hashCode() { | ||
return super.hashCode(); |
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.
In this case, there is no need to override hashCode
|
||
{ | ||
for (int i=0; i <= machine.length; i++){ |
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.
There will be java.lang.ArrayIndexOutOfBoundsException.
You have to change int i = 0; i < strings.length; i++
or use forEach (https://www.w3schools.com/java/java_foreach_loop.asp)
Delete Override hashcode
Change fori to foreach
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.
Please always make sure your build passes before requesting another mentor's review
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.
maven check complete
No description provided.