I tried the line below:
HashMap <Temp,<? extends Action> > p= new HashMap<Temp, <? extends Action>>()
Eclispe is giving me an error
Multiple markers at this line
– Syntax error on token “,”, Type expected after
this token
– Syntax error on token “,”, Type expected after
this token
Any reasons why i am getting this error and how to remove this ?
Program to interfaces!
Its better practice.
I noticed that perhaps this wasn’t answered correctly. The problem is explained in detail here. What will work for you is perhaps
Hope that helps.
Third edit, I’m new to writing comments so note sure what the process is anyhow here is an example: