title: Java's equivalent of arrayof()/ listof()/ setof()/ mapof() from Kotlin
body: <p>I was just wondering that if java has the equivalent of arrayof()/ listof()/ setof()/ mapof() like those in kotlin? If not, is there any way to work similarly? <a href="http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/index.html" rel="noreferrer">I found them very different from java.</a></p>
  
  <p>Btw, do intArrayOf()/ arraylistof()/ hashsetof()/ hashmapof() etc. do the same thing as int[]{}/ new new ArrayList&lt;>()/ new HashSet&lt;>()/ new HashMap&lt;>() etc.?</p>