Originally posted by Fear
i understand the const now,though i still cant undetstand static operator . what is supose to do change 1 int to another int?
No, just to ensure whatever result is returned is treated as an int. i.e. you don't know what you get back, but the cast 'turns' it (logically) into an int value.
i.e.
Lets say the String 'blah'
is
1001 1110
in memory (its not, that's far too small and short a value....but ne'erming

)
Now - there's nothing 'stored' which says that binary value is a String - the only thing that indicates that, is that you reference it in the program as a String variable.
So, if you cast to an int, the program is simply reading that same memory, in a different way. Instead of working out 1001 1110 is 'blah' (as it would with a String) it's reading it as its integer value.
So - it doesn't change what's stored, but how the program 'looks' at it. In the case before, it's ensuring that whatever result that operation gives, it'll be modified and referenced as an int value.