Groovy Type Specification - Hashset


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

Output of Script

 44 ms

class java.util.HashSet

Comments

Popular posts from this blog

Array and Object Creation - JavaScript

Groovy Tuples

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