Skip to content

Commit 42353fb

Browse files
committed
Update blogpost
1 parent f9f4120 commit 42353fb

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

_posts/collections/arraylist/2021-11-24-arraylist-in-java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ By default, Collections are heterogeneous i.e. they can save all types of object
105105
|[`retainAll(Collection c)`](http://coderolls.com/arraylist-retainall-method/)|This method method retains all the elements of the collection passed as a parameter in the list.|
106106
|[`trimToSize()`](http://coderolls.com/arraylist-trimtosize-method/)|This method trims the capacity of this ArrayList instance to be the list's current size.|
107107
|[`indexOf(Object o)`](http://coderolls.com/arraylist-indexof-method/)|This method returns the index of the first occurrences of the object specified. It returns -1 if the specified object `o` is not present in the list.|
108+
|[`lastIndexOf(Object o)`](http://coderolls.com/arraylist-lastIndexof-method/)|This method returns the index of the last occurrences of the object specified. It returns -1 if the specified object `o` is not present in the list.|
108109

109110

110111

_posts/collections/arraylist/2022-01-04-arraylist-ensurecapacity-method.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ layout: post
33
title: "ArrayList ensureCapacity() method in Java"
44
author: gaurav
55
categories: [Collections, ArrayList]
6-
description: "In this short tutorial, we will see the ensureCapacity(int minCapacity) method of the Arraylist class in Java."
6+
7+
description: "In this short tutorial, we will see the ensureCapacity(int minCapacity) method of the Arraylist class in Java."
8+
79
---
10+
811
In this tutorial, we will see the `ensureCapacity(int minCapacity)` method of the [ArrayList class in Java](https://coderolls.com/arraylist-in-java/).
912

1013
## Introduction
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
3+
layout: post
4+
5+
title: "Lambda Expressions in 8 java"
6+
7+
author: gaurav
8+
9+
categories: [Collections, ArrayList]
10+
11+
description: "In this article, we will see how to remove an element from an ArrayList."
12+
13+
---
14+

0 commit comments

Comments
 (0)