List<Organization> organizations = new ArrayList<>(Arrays.asList(
new Organization("ФАР", "4444-55555-1", "FAR@GMAIL.COM", 18),
new Organization("АБД", "4444-55555-2", "ABD@GMAIL.COM", 19),
new Organization("АГО", "4444-55555-3", "AGO@GMAIL.COM", 20),
new Organization("ЫВА", "4444-55555-4", "IVA@GMAIL.COM", 21),
new Organization("ЦУШ", "4444-55555-5", "CUS@GMAIL.COM", 22),
new Organization("ЛСХ", "4444-55555-6", "LSH@GMAIL.COM", 18),
new Organization("АСД", "4444-55555-7", "ASD@GMAIL.COM", 19),
new Organization("КНГ", "4444-55555-8", "KNG@GMAIL.COM", 20),
new Organization("ПРО", "4444-55555-9", "PRO@GMAIL.COM", 21),
new Organization("АСС", "4444-55555-0", "ASS@GMAIL.COM", 22)
));
System.out.println(organizations);
Ошибок при этом в коде нет, но выводит в такомформате:
[Organization@3feba861, Organization@5b480cf9, Organization@6f496d9f, Organization@723279cf, Organization@10f87f48, Organization@b4c966a, Organization@2f4d3709, Organization@4e50df2e, Organization@1d81eb93, Organization@7291c18f]
Формат стоит на UTF-8