topCompanies = new ArrayList<>();
// Check if an ArrayList is empty
- System.out.println("Is the topCompanies list empty? : " + topCompanies.isEmpty());
+ System.out.println("Ashok doing git practice ? : " + topCompanies.isEmpty());
topCompanies.add("Google");
topCompanies.add("Apple");
diff --git a/java-arraylist-examples/src/ArrayListCollectionsSortExample.java b/java-arraylist-examples/src/ArrayListCollectionsSortExample.java
index 6ad7594..45b24c3 100644
--- a/java-arraylist-examples/src/ArrayListCollectionsSortExample.java
+++ b/java-arraylist-examples/src/ArrayListCollectionsSortExample.java
@@ -11,7 +11,7 @@ public static void main(String[] args) {
numbers.add(5);
numbers.add(2);
- System.out.println("Before : " + numbers);
+ System.out.println("Ashok number here : " + numbers);
// Sorting an ArrayList using Collections.sort() method
Collections.sort(numbers);
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy