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
José Guerrero
6,195 PointsGenerics and Interface form java standard libraries??
Can anyone tell me some generics or interface form the java standard libraries and where i can found them. I'm making a simulation of a fish tank and I want to experiment with generics a interface forma the librarie
Thanks.
1 Answer
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsTry to google if you want to know more general information about interfaces and/or Generics, tons of resources out there:
https://www.tutorialspoint.com/java/java_interfaces.htm
http://tutorials.jenkov.com/java/interfaces.html
Wikipedia, oracle and many more.
The same about Generics
https://docs.oracle.com/javase/tutorial/java/generics/
https://en.wikipedia.org/wiki/Generics_in_Java
If you want concrete help on your project, post code, share GitHub link if project is big, ask specific questions.
One cannot just infer what you are trying to do when you are saying
I'm making a simulation of a fish tank and I want to experiment
It is simply impossible.
Don't know where are you on Java Track, but interfaces are everywhere starting from 'Java Data Structures' the further you get, especially in Web Development, e.g. 'Intro into Spark' course.
IN the video below Craig introduces Comparable and Serializable
Interfaces are used everywhere. java.util.List, Set, Map are all interfaces for example
About Generics, read Wiki Link above. Very very nice article with examples