IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Java Tutorial: Collection - Part 2 (List)

3 posters

Go down

Java Tutorial: Collection - Part 2 (List) Empty Java Tutorial: Collection - Part 2 (List)

Post by BIT0112-Rokon Sat Jun 04, 2011 5:59 am

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
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Java Tutorial: Collection - Part 2 (List) Empty Re: Java Tutorial: Collection - Part 2 (List)

Post by BIT0122-Amit Sun Jun 05, 2011 2:20 am

বরাবরের মতোন ভালো লেখা। তবে ছোট খাটো কিছু ব্যাপারে আমার একটু কেমন জানি লেগেছে। সেগুলা বললে মানুষ বলবে, "লাড্ডু আবার ভুল ধরতাছে"।

না, আমার কাছে কোন কিছু ভুল লাগে নি। Smile বেশ কিছু জিনিষ বরং জানতে পেরেছি।

তবে যেসব ব্যাপারে প্যাচ লেগেছে, সেসব বলি?

১)
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.
এই দুইটা কথা শুনে পরস্পর বিরোধী হলেও আসলে ঠিক। কিন্তু একটু প্যাচগি মারা। তাই আরেকটু সহজবোধ্য হইলে ভালো হইতো Very Happy

সব মিলিয়ে খুব সুন্দর একটা টিউটো হইছে। rep++
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Java Tutorial: Collection - Part 2 (List) Empty Re: Java Tutorial: Collection - Part 2 (List)

Post by BIT0112-Rokon Sun Jun 05, 2011 4:32 am

হুম, থ্যাংকস মনযোগ দিয়ে পড়ার জন্য।

লাড্ডু কি কি জিনিস জানতে পেরেছে তা যদি হাইলাইট করতো তাহলে ভাল হতো না আরও। btw, আরও লিখবো, কিন্তু টাইম পাইতেছি না।

যাহোক, আমি জাভার কিছু হিডেন ফিচার নিয়ে লেখা শুরু করেছি, এইখানে দেবো, লেখা শেষ হলে।
ডাল ব্রেস একটা: http://blog.codexplo.org/2011/06/04/double-brace-initializer-java/

সি সার্পে করতে গিয়ে এইটাইপ সুবিধা দেখেছি, কিন্তু ভাজাতে নাই কেন, প্রশ্ন উঠেছিল মনে, কিন্তু এইটা আসলে ভাজাতেও আছে।
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Java Tutorial: Collection - Part 2 (List) Empty Re: Java Tutorial: Collection - Part 2 (List)

Post by BIT0102-Mohaimin Sat Jun 11, 2011 2:03 pm

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
BIT0102-Mohaimin
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : B+
Posts : 415
Points : 715

Back to top Go down

Java Tutorial: Collection - Part 2 (List) Empty Re: Java Tutorial: Collection - Part 2 (List)

Post by BIT0112-Rokon Sat Aug 06, 2011 4:24 am

Mohaimin, I would like to request you to write third part, then may be amit will write 4rth part or me!
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Java Tutorial: Collection - Part 2 (List) Empty Re: Java Tutorial: Collection - Part 2 (List)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum