Preet Rams wrote:@Henry I understand your doubt...but how else can I assign a list of strings as the key??
Why would you want to? A key is supposed to be specific.
Suggestion: Instead of telling us what you've done, why not tell us what you
want.
That way we don't have to guess the intent of code that doesn't work.
Also:
Classes should start with capital letters, so it should be Operations, not operations.Your field names appear to be using some sort of weird Hungarian Notation. My advice: forget it. You really don't need it in Java.
I get no compiler errors for this program..just that the get method returns null.
Then you plainly haven't given us what you compiled, because
op.functii = functi.get(i);
won't work because there is nothing called '
functi' - at least in what you've shown us.
Winston