here as shown in code
when i remove <Object> at 1 then it compiles fine but if it is included then it shows error can anyone please tell why this is happening ???
Try to give a correct description of your problem. In your case you're getting a warning and NOT an error. They are 2 completely different things. In the former case the compiler only warns you about something and in the latter case the compiler doesn't accept your code because it is just plain wrong.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I'm pretty sure that in the code (in the picture that was posted while I was writing my post) you defined m as something like : Hashtable<Object, Object> and not as Hashtable like you posted in the openings post.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.