Skip to Content
0
Former Member
May 31, 2011 at 10:01 PM

Code sample question

31 Views

Hi sorry for this completely stupid question but the below piece of code I am trying to dissect and understand.

I understand the first line I am creating a new global container but the second line I am not so sure what the (integer) would be for. Is this meant to be a variable or a return type? What could that possibly be for I mean a type in parenthesis after the equals sign.

GlobalContainer gc = container.getContainer();
Integer counter = (Integer) gc.getParameter("counter");

Thank you for your help.