6
আমি কীভাবে তালিকাতে যুক্ত করতে পারি? সংখ্যা> তথ্য কাঠামো প্রসারিত?
আমার একটি তালিকা রয়েছে যা এইভাবে ঘোষণা করা হয়েছে: List<? extends Number> foo3 = new ArrayList<Integer>(); আমি foo3 এ 3 যোগ করার চেষ্টা করেছি। তবে আমি এর মতো একটি ত্রুটি বার্তা পাই: The method add(capture#1-of ? extends Number) in the type List<capture#1-of ? extends Number> is not applicable for the …