What does this mean?
HashBiMap<Character, Integer> charOcc = HashBiMap.<Character, Integer> create();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
create()is a generic method. Since it’s static and has no parameters (hence no type inference), the only way you can tell it what the generic parameters are is by that strange-looking.<Character, Integer>syntax.Edit: This is actually not necessary in this specific case; the compiler can infer the generic types from the left-hand side. But it is sometimes necessary in other cases, such as this question: Generic method in Java without generic argument