[Solved] How do i convert a Set into 2D array in java? [closed]
[ad_1] Let be a: public class MyClassWhithFourFields { String field1; int field2; Object field3; double field4; } Now you can declare a set with this template: Set<MyClassWhithFourFields> mySet = new HashSet<MyClassWhithFourFields>(); In your Set are your objects, which has 4 fields. If you want to declare a 2 dimension array, than what type should be? … Read more