void (String[] args) { Foo<String> stringFoo = new Foo<>("", 2); Foo<String> foo1 = Foo.of("String2", 123); Foo<String> foo2 = Foo.of2("String2", 4423); System.out.println(stringFoo); System.out.println(foo1); System.out.println(foo2); }