Groovy web console

subscribe to the feed Subscribe
to this
site
Max (via #groovywebconsole)
tweet this snippet Tweet
this
script

Max

Published 3 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Collection<Long> blockingSellerIds = []

if (blockingSellerIds){
    println ("EMPTY!");
}

blockingSellerIds.add(666);

if (blockingSellerIds){
    println ("HAS ELEMENTS!");
}