Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Add files via upload #1569

wants to merge 9 commits into from

Conversation

Alex-zzzz
Copy link

No description provided.

@Alex-zzzz
Copy link
Author

Есть много сомнений но может первый блин не комом а экзешником)

@Alex-zzzz Alex-zzzz closed this Jul 31, 2023
@Alex-zzzz Alex-zzzz reopened this Jul 31, 2023
# 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
Copy link

@Ivan95kos Ivan95kos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix all checks
Знімок екрана 2023-07-31 о 17 25 17

@Alex-zzzz
Copy link
Author

Исправил mainApp и по мелочи в классах

@Alex-zzzz Alex-zzzz closed this Jul 31, 2023
@Alex-zzzz Alex-zzzz reopened this Jul 31, 2023
@Alex-zzzz Alex-zzzz requested a review from Ivan95kos July 31, 2023 14:46
Copy link

@overpathz overpathz left a 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();

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++){

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
Copy link

@okuzan okuzan left a 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

src/main/java/core/basesyntax/Machine.java Show resolved Hide resolved
src/main/java/core/basesyntax/MainApp.java Show resolved Hide resolved
@Alex-zzzz Alex-zzzz closed this Aug 1, 2023
Copy link
Author

@Alex-zzzz Alex-zzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maven check complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants