Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Add a method to return the common items in this array and another array

Hello, I'm working on learning Data Structures and I'm tasked with this question:

"add a method to return the common items in this array and another array"

I've come up with something that works, but I know it can be much better. Any help will be greatly appreciated.

(using intersect method on the Array class)

https://replit.com/@raje101/BountifulNovelMicroprogramming#Array.java