Hi, Dear all
Can you help me to sort out this problem?
Here is the pat of my code:
variable me is a hashmap's Entryset.
1. v = ((Integer)me.getValue()).intValue();
2. int x = v++;
3. hm.putValue( (Integer) x );
The error lies in line 3."inconvertible type,required java.lang.Integer"
How can I deal with this? I thought I'v already convert int x to Object Integer. However line 1 did the same thing successfully. Quite confuesd.
thanks
Duan
Can you help me to sort out this problem?
Here is the pat of my code:
variable me is a hashmap's Entryset.
1. v = ((Integer)me.getValue()).intValue();
2. int x = v++;
3. hm.putValue( (Integer) x );
The error lies in line 3."inconvertible type,required java.lang.Integer"
How can I deal with this? I thought I'v already convert int x to Object Integer. However line 1 did the same thing successfully. Quite confuesd.
thanks
Duan