Sobes.tech
Junior

როგორ შეიძლება ერთი ხაზით გარდავიქცე ArrayList-ი HashSet-ში?

sobes.tech AI

პასუხი AI-სგან

// ArrayList-დან HashSet-ის შექმნა
HashSet<String> set = new HashSet<>(arrayList);