Anyone able to help with this one?

I need to create an array whose length will be determined by the number of figures the user inputs. I've done the following:

int[] widgetArray;
widgetArray = new int[];

However, the compiler doesn't seem to like it; it keep saying:
'{' expected
widget Array = new int[];

with an arrow pointing between the close square bracket and the semicolon. Suggestions?