Java Java Data Structures Organizing Data Interfaces

I 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

Sagar Thakkar
Sagar Thakkar
8,812 Points

hay are you there ??? Reply I will help you

linda wu
linda wu
3,014 Points

I'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
Deneen Edwards
5,626 Points

The 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.