import java.util.*; public class Test { Set ints = new HashSet(); public Set foo() { return ints; } public static void main(String[] args) { Test t2 = new Test(); Set ints2 = t2.foo(); } }