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

Fix slide on deepEquals on nested arrays slides w08 #843

Closed
bjornregnell opened this issue Nov 5, 2024 · 2 comments
Closed

Fix slide on deepEquals on nested arrays slides w08 #843

bjornregnell opened this issue Nov 5, 2024 · 2 comments

Comments

@bjornregnell
Copy link
Member

Make extra slide with conrete example of deepEquals where arrays are cast to Array[Object]

@bjornregnell
Copy link
Member Author

@bjornregnell
Copy link
Member Author

scala> java.util.Arrays.deepEquals(
     |   Array(Array("a", Array("b"))).asInstanceOf[Array[Object]],
     |   Array(Array("a", Array("b"))).asInstanceOf[Array[Object]])
val res9: Boolean = true
                                                                                            
scala> java.util.Objects.deepEquals(
     |   Array(Array("a", Array("b"))),
     |   Array(Array("a", Array("b"))))
val res10: Boolean = true

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

No branches or pull requests

1 participant