Leem.fin Leem.fin - 1 year ago 94
Java Question

curly braces when define array

Regards to the following code:

int[] to = new int[] { text };


I understand it tries to define an array of integer, but What does the curly braces do in array definition?

Answer Source

The curly braces contain values to populate the array.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download