Groovy Type Specification - TreeSet


​def names = ["John","Paul","George","Ringo","Paul"] as TreeSet
println names.class
println names
​

Output of Script

 289 ms

class java.util.TreeSet
[George, John, Paul, Ringo]

Comments

Popular posts from this blog

Array and Object Creation - JavaScript

Groovy Tuples

அவன் ஏன் கூலியானான்?