What is the "easiest" way for you to create a singleton (with exactly one element) Objects array in Java ?
Object [] singleton = { new SomeObject() };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With