Skip to content

Commit

Permalink
Core #37.
Browse files Browse the repository at this point in the history
  • Loading branch information
Temzor committed Sep 10, 2023
1 parent 46a517e commit 8a2b102
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/ru/core/l2/collections/linkedl/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ public class Main {
public static void main(String[] args) {
Car firstCar = new Car("BMW", 1);
Car secondCar = new Car("BMW", 1);
System.out.println(firstCar == secondCar);
System.out.println(firstCar.equals(secondCar));

System.out.println(firstCar.hashCode());
System.out.println(secondCar.hashCode());
}
}

0 comments on commit 8a2b102

Please sign in to comment.