What is the “easiest” way for you to create a singleton (with exactly one element) Objects array in Java ?
Advertisement
Answer
Object [] singleton = { new SomeObject() };
What is the “easiest” way for you to create a singleton (with exactly one element) Objects array in Java ?
Object [] singleton = { new SomeObject() };