Manuel Selva Manuel Selva - 1 year ago 356
Java Question

Best way to create singleton array

What is the "easiest" way for you to create a singleton (with exactly one element) Objects array in Java ?

Answer Source
Object [] singleton = { new SomeObject() };
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download