章次 章 次
-
0:03章章章 章章 章 次 第一章 章 第一章 一章 1: Let's see how generics prevent the problems we discussed earlier. 157s · Speaker 1
Let's see how generics prevent the problems we discussed earlier. So, let's add a new class in this package. We call this generic list to differentiate from the other list implementation. Now we want this class to be generic so we can reuse…
-
2:42章章章 章章 章 次 第一章 章 第一章 一章 2: Finally, we need our get method, so public t get integer index. 102s · Speaker 3
Finally, we need our get method, so public t get integer index. Again, instead of an integer or an object, we return t. So here we return items of index. Now, back to our main class, when we create a generic list of integer and call the add…