Java snippet for literal arrays

In need of lots of hardcoded literal arrays?
Even if not considered a good practice, maybe you are unit testing array receiving methods so, is there a direct way without having to do the classic new Type[]{… thing?

If needed in more places, just make those methods static (and in a proper utils class) and static import them.

Loading Disqus Comments ...
Loading Facebook Comments ...