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 trialPassavudh Sabpisal
4,474 PointsI absolutely really don't understand anything that is happening in the Java Interface video.
Can anyone do a recap??? I srsly feel like quitting because I am so confused right now. Especially the part about (compareTo(Object obj)) and the (dateCmp==0). But I don't really understand what everything is going on. THIS IS SO CONVOLUTED
linda wu
3,016 PointsI'm also get stuck with this exercise for a while now, but I found this video on youtube is simple and have clear explanation on what is interface, the compareto method and how the interface is invoked. Please check this out. https://www.youtube.com/watch?v=5gzayWys06o
1 Answer
Deneen Edwards
5,626 PointsThe information in this link, helped me understand the CONCEPT of interfaces discussed in this video. After reading this, I was like Oh OK, I get it now.
http://docs.oracle.com/javase/tutorial/java/IandI/createinterface.html
The documentation says (in a nutshell): It is important for disparate groups of programmers to agree to a "contract" that spells out how their software interacts.
Then gives the example: Auto manufacturers must publish an industry-standard INTERFACE that spells out in detail what methods can be invoked to make the car move for this new robotic futuristic car (any car, from any manufacturer). Then disparate groups of programmers write software that invokes the methods described in the interface to command the car.
==> So a bunch of people get together and figure out how something is going to work...And then the programmers write the code on what was agreed upon.
Sagar Thakkar
8,814 PointsSagar Thakkar
8,814 Pointshay are you there ??? Reply I will help you