How-to articles, tricks, and solutions about JAVA
Good Hash Function for Strings
A good hash function for strings should have the following properties:
Java Compare Two Lists
To compare two lists in Java, you can use the equals() method of the List interface.
How do I concatenate two strings in Java?
To concatenate two strings in Java, you can use the + operator.
:: (double colon) operator in Java 8
In Java 8, the :: (double colon) operator is used to refer to a method or a constructor.
Understanding Spring @Autowired usage
The @Autowired annotation in Spring is used to inject dependencies into a Java object.