Today I\'ve added a extra security check behind my login forms, to slow down brute force attacks. I\'ve got multiple login forms and made a nice easy to call function that d
You can return an Object[] array, java autoboxes so its more easy to use. If it's just for a short distance handover, why not. Ofc its risky, possible class cast trouble, nullchecks etc
but its easy to write and use.
then again, a static inner class is quickly created and if you put it right next to the method returning it, you also know where to find it (usually near the origin)