How can I have a second string in my HashMap?
The hashmap works with

<String, Double, String>

But not with

<String, Double, String>

The code
import java.util.HashMap;
import java.util.Map;
 
public class App{
    public static void main(String[] args) {
        HashMap<String, Double, String> hashMap = new HashMap<String, Double, String>();
        hashMap.put("John Doe", 3434.34, "CEO");
        hashMap.put("Tom Smith", 123.22, "CFO");
 
        System.out.println(hashMap.get("Tom Smith"));
 
    }
}