Java Tutorial: Collection - Part 2 (List)
3 posters
Page 1 of 1
Java Tutorial: Collection - Part 2 (List)
You already read the Mohaimin's Part 1 about Java Collection Framework. I have written the next part that is on List. I think you guys like it.
List:
The java.util.List interface is a subtype of the java.util.Collection interface. It represents an order list of objects. User can access the elements of list in a specific order or by integer index. List allows to insert duplicate elements. Interestingly you can insert null object even in a list.
As it is an interface, there of course it has implementation. ArrayList, LinkedList, Vector, Stack are the implementation of List. All List types support basic operation like adding object, removing objects, accessing objects and iterating through the List.
There are also List implementation in java.util.concurrent package. Concurrency is the part of parallel programming, immutability, threads, executor frameworks etc. We better discuss this part later.
I think you guys wont mind to read rest of the article in here
Again, if you want the offline version, its also available.
Online Version : CLICK HERE
Offline Version : CLICK HERE
List:
The java.util.List interface is a subtype of the java.util.Collection interface. It represents an order list of objects. User can access the elements of list in a specific order or by integer index. List allows to insert duplicate elements. Interestingly you can insert null object even in a list.
As it is an interface, there of course it has implementation. ArrayList, LinkedList, Vector, Stack are the implementation of List. All List types support basic operation like adding object, removing objects, accessing objects and iterating through the List.
There are also List implementation in java.util.concurrent package. Concurrency is the part of parallel programming, immutability, threads, executor frameworks etc. We better discuss this part later.
I think you guys wont mind to read rest of the article in here
Again, if you want the offline version, its also available.
Online Version : CLICK HERE
Offline Version : CLICK HERE
Re: Java Tutorial: Collection - Part 2 (List)
বরাবরের মতোন ভালো লেখা। তবে ছোট খাটো কিছু ব্যাপারে আমার একটু কেমন জানি লেগেছে। সেগুলা বললে মানুষ বলবে, "লাড্ডু আবার ভুল ধরতাছে"।
না, আমার কাছে কোন কিছু ভুল লাগে নি। বেশ কিছু জিনিষ বরং জানতে পেরেছি।
তবে যেসব ব্যাপারে প্যাচ লেগেছে, সেসব বলি?
১)
আমি এখানে একটা variable খুঁজাখুঁজি করে এরপর বুঝতে পারলাম আসলে বলা হচ্ছে List class এর কথা।
২)
এই প্যাচগিটা লেগেছে অনেকগুলা বাক্য পড়ার পরে।
সব মিলিয়ে খুব সুন্দর একটা টিউটো হইছে।
না, আমার কাছে কোন কিছু ভুল লাগে নি। বেশ কিছু জিনিষ বরং জানতে পেরেছি।
তবে যেসব ব্যাপারে প্যাচ লেগেছে, সেসব বলি?
১)
There are two overload method in list.
আমি এখানে একটা variable খুঁজাখুঁজি করে এরপর বুঝতে পারলাম আসলে বলা হচ্ছে List class এর কথা।
২)
এই প্যাচগিটা লেগেছে অনেকগুলা বাক্য পড়ার পরে।
LinkedList gives better performance when adding and removing objects.
এই দুইটা কথা শুনে পরস্পর বিরোধী হলেও আসলে ঠিক। কিন্তু একটু প্যাচগি মারা। তাই আরেকটু সহজবোধ্য হইলে ভালো হইতোLinkedList gives good performance when adding elements at the end and beginning but it is worse when adding objects at middle because it needs to scan the node whenever it needs to add an object.
সব মিলিয়ে খুব সুন্দর একটা টিউটো হইছে।
Re: Java Tutorial: Collection - Part 2 (List)
হুম, থ্যাংকস মনযোগ দিয়ে পড়ার জন্য।
লাড্ডু কি কি জিনিস জানতে পেরেছে তা যদি হাইলাইট করতো তাহলে ভাল হতো না আরও। btw, আরও লিখবো, কিন্তু টাইম পাইতেছি না।
যাহোক, আমি জাভার কিছু হিডেন ফিচার নিয়ে লেখা শুরু করেছি, এইখানে দেবো, লেখা শেষ হলে।
ডাল ব্রেস একটা: http://blog.codexplo.org/2011/06/04/double-brace-initializer-java/
সি সার্পে করতে গিয়ে এইটাইপ সুবিধা দেখেছি, কিন্তু ভাজাতে নাই কেন, প্রশ্ন উঠেছিল মনে, কিন্তু এইটা আসলে ভাজাতেও আছে।
লাড্ডু কি কি জিনিস জানতে পেরেছে তা যদি হাইলাইট করতো তাহলে ভাল হতো না আরও। btw, আরও লিখবো, কিন্তু টাইম পাইতেছি না।
যাহোক, আমি জাভার কিছু হিডেন ফিচার নিয়ে লেখা শুরু করেছি, এইখানে দেবো, লেখা শেষ হলে।
ডাল ব্রেস একটা: http://blog.codexplo.org/2011/06/04/double-brace-initializer-java/
সি সার্পে করতে গিয়ে এইটাইপ সুবিধা দেখেছি, কিন্তু ভাজাতে নাই কেন, প্রশ্ন উঠেছিল মনে, কিন্তু এইটা আসলে ভাজাতেও আছে।
Re: Java Tutorial: Collection - Part 2 (List)
Thanks that you are continuing the job I started. Please let me know when you start writing part 3. Because may be I will also write another part. We should make sure that we do not write on the same topic.
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: Java Tutorial: Collection - Part 2 (List)
Mohaimin, I would like to request you to write third part, then may be amit will write 4rth part or me!
Similar topics
» Java Tutorial: Collection - Part 1 (Introduction)
» Java Tutorial: Painting in swing components, part 1
» Java Tutorial: Painting in swing components, part 2 (Interactive painting)
» Java Tutorial: Using Two Java Reference Keywords, this and super
» Java networking presentation part 1
» Java Tutorial: Painting in swing components, part 1
» Java Tutorial: Painting in swing components, part 2 (Interactive painting)
» Java Tutorial: Using Two Java Reference Keywords, this and super
» Java networking presentation part 1
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford