Java-da faqat dasturlash tilidan foydalanib o'zgaruvchan ro'yxatni yaratish mumkin emas. O'zgaruvchan ro'yxatni yaratish uchun Guava yoki Collections kabi tashqi kutubxonadan foydalanish kerak. Guava kutubxonasi bilan o'zgaruvchan ro'yxatni yaratish uchun kod quyidagicha bo'ladi: import com.google.common.collect.ImmutableList; public class MisolInmutableList { public static void main(String[] args) { ImmutableList<String>Inmutable list = ImmutableList.of"element1", "element2", "element3"); // Ro'yxatni o'zgartirishga urinish UnsupportedOperationException } } } Conception kutubxonasini ishlatish kerak, o'zgaruvchan ro'yxatni yaratish uchun
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence