/r/javaTIL
A place for sharing something new you've learned about the Java programming language. Share code snippets, discuss ideas, and provide feedback to other coders!
Welcome to /r/javaTIL! This is a place designed to share interesting things you've learned to do in Java, as well as to discover new ideas from other redditors. Posts can range from something cool you picked up in your 101 class, to much more complicated things from the world beyond school.
Please remember to always be respectful, but don't be afraid to give people feedback on their ideas!
There are only a few basic rules:
Feel free to message the mod if you have any feedback or questions.
Related Subreddits
/r/javaTIL
I have created type safe hashmap in Java. The hashmap can store any type of object and retrieve the object without explicit cast:
http://millionstrengthknowledge.com/resource/java/programming/typeSafeMap.html
Author of one of Java learning books recommend to use String as ID variables, because you don't do math to them and by using String you secure yourself from int/long/etc choice errors in advance
What do you think about this?