Day 14 – Exploring ArrayList in Java Today I learned about ArrayList, one of the most commonly used classes in the Java Collections Framework. Unlike arrays, ArrayList provides a dynamic way to store data, meaning its size can grow or shrink as needed. Things I explored today: 🔹 Creating an ArrayList 🔹 Adding elements using add() 🔹 Accessing elements using get() 🔹 Removing elements using remove() 🔹 Finding the size using size() Example concept: An ArrayList can store multiple values and allows us to easily manage data without worrying about fixed sizes like arrays. 💡 Key takeaway: ArrayList makes it easier to store, manage, and manipulate collections of data dynamically. Step by step, I’m continuing to strengthen my understanding of Java and real-world programming concepts 🚀 #Java #ArrayList #Collections #Programming #LearningInPublic #CodingJourney #ComputerScience #Day14
Java ArrayList: Dynamic Data Storage and Management
More Relevant Posts
-
Today I revised an important Java concept: String Comparison == vs .equals(). 🔹 == operator compares memory references (addresses). 🔹 .equals() method compares the actual content of the strings. Example: • When strings are created using literals, they refer to the same object in the String Constant Pool, so == may return true. • When strings are created using new String(), separate objects are created in heap memory, so == returns false even if the content is the same. Understanding this difference helps avoid common mistakes when comparing strings in Java. Thanks to my mentors for their guidance: Saketh Kallepu Anand Kumar Buddarapu Uppugundla Sairam #Java #StringComparison #JavaBasics #Programming #LearningJourney #Codegnan
To view or add a comment, sign in
-
-
🚀 Exploring Java Collection Framework Today’s session was all about understanding the powerful Java Collection Framework and how it helps in managing and organizing data efficiently. Dived deep into core concepts like interfaces and classes in collections, and explored the three main interfaces: List, Set, and Map. Gained clarity on how these structures differ and where to use them in real-world applications. Focused on the ArrayList class—its properties like dynamic resizing, ordered storage, and index-based access—making it one of the most commonly used collection classes in Java. Also understood the hierarchy of ArrayList, how it is part of the List interface, and how it inherits behavior from abstract classes like AbstractList and AbstractCollection. 📚 A strong foundation in collections is essential for writing efficient and scalable Java applications. TAP Academy #Java #CollectionsFramework #ArrayList #Programming #LearningJourney #FullStackDevelopment
To view or add a comment, sign in
-
-
***Learn Programming with Arrays, Lists, Sets and Maps with Practical Examples*** Session 2: Array Object in Java | Programming with Arrays, Lists, Sets and Maps Series Learn It Easy: https://lnkd.in/dYh-esat #arrays #lists #sets #maps #java #learntocode #seleniumwebdriver #automationtesting #computerprogramming #dezinnia #dezlearn #happylearning
Session 2: Array Object in Java | Programming with Arrays, Lists, Sets and Maps Series
https://www.youtube.com/
To view or add a comment, sign in
-
Day 43-What I Learned In a Day(JAVA) Today I worked on String concepts in Java and practiced some interesting problems. What I learned: Creating and using strings in Java Converting a number into an array using strings Handling characters using charAt() Problems I practiced: ✅ Created and manipulated strings ✅ Converted number -array using string ✅ Moved zeros to the end of an array These problems helped me understand how strings and arrays work together and improved my problem-solving skills. Learning step by step and getting better every day! Practiced 👇 #Java #CodingPractice #LearningJourney #Programming #100DaysOfCode
To view or add a comment, sign in
-
⚙️ Learning Update : Multithreading Fundamentals in Java. Today I started exploring the Multithreading chapter in Java and learned several important concepts related to how operating systems and programs manage tasks and CPU execution. 🔹 Process vs Threads A process is an independent program in execution with its own memory space, while a thread is a smaller unit of execution within a process that shares the same resources. Threads help programs perform multiple tasks efficiently. 🔄 Context Switching Context switching occurs when the CPU switches from one thread or process to another, allowing multiple tasks to run seemingly at the same time. 🖥️ CPU Scheduling CPU scheduling is the method used by the operating system to decide which process or thread should use the CPU at a particular time. Efficient scheduling improves system performance and responsiveness. ⏱️ Time Sharing Time sharing allows multiple processes to share the CPU by allocating a small time slice to each process, giving the illusion that they are running simultaneously. 🔀 Multitasking vs Multithreading 🔹 Multitasking refers to running multiple programs at the same time. 🔹 Multithreading refers to running multiple threads within a single program simultaneously. 💡 Understanding these concepts is essential for building high-performance, responsive, and concurrent applications in Java. Excited to continue learning deeper concepts of multithreading and concurrent programming. #Java #Multithreading #Programming #SoftwareDevelopment #Coding #LearningJourney #ComputerScience #BackendDevelopment 🚀
To view or add a comment, sign in
-
-
📘 Java Arrays Explained in Easy Language Sharing a simple PDF that explains Java Arrays in an easy and beginner-friendly way. This guide covers: ✅ What is an Array ✅ Why Arrays are used ✅ Array Index concept ✅ Accessing Array Elements ✅ One-Dimensional Arrays ✅ Common errors like ArrayIndexOutOfBoundsException Perfect for Java beginners and interview revision. #Java #CoreJava #Programming #Coding #JavaDeveloper #LearningInPublic
To view or add a comment, sign in
-
Hii Everyone!!! Topic: Method Overloading in Java (Compile-Time Polymorphism) Understanding Method Overloading in Java Today, I explored an important concept in Java called Method Overloading, which is a part of Compile-Time Polymorphism.. In this program, I created a Calculator class with multiple add() methods: Same method name Different parameter types and counts This allows Java to decide which method to execute based on the arguments passed — improving flexibility and code readability. #Java #Programming #Coding #MethodOverloading #OOP #JavaDeveloper #LearningJourney
To view or add a comment, sign in
-
-
🚀 **4 Pillars of Java OOP Every Developer Must Know** Object-Oriented Programming is the backbone of Java. The 4 main pillars are: 🔹 **Encapsulation** Wrapping data and methods together. 🔹 **Inheritance** Allows one class to acquire properties of another. 🔹 **Polymorphism** Same method behaving differently. 🔹 **Abstraction** Hiding internal implementation and showing only functionality. Example: java class Animal { void sound(){ System.out.println("Animal sound"); } } Understanding these concepts helps build **scalable and maintainable applications.** 💬 Which OOP concept do you use the most in real projects? #Java #OOP #SoftwareDevelopment #Programming #BackendDevelopment #Coding #JavaDeveloper #LearnToCode
To view or add a comment, sign in
-
-
🚀 Day 7/45 – Working with Strings in Java On Day 7 of my Java learning journey, I explored the concept of Strings, which are used to store and manipulate text data in programs. Strings are widely used in almost every application, from user input to data processing. 📚 What I Learned Today Today I learned: ✔ What strings are and how they are created in Java ✔ Important string methods like length(), charAt(), and toUpperCase() ✔ How to compare strings using equals() ✔ Understanding case-sensitive and case-insensitive comparisons 💻 Practice Work To strengthen my understanding, I implemented: • A program to reverse a string • A program to count characters in a string • A palindrome checker using string logic 🎯 Key Takeaway Strings are a fundamental part of programming, and mastering string manipulation is essential for solving real-world problems. Consistent daily practice is helping me build strong fundamentals step by step. #Java #Programming #LearningInPublic #CodingJourney #SoftwareDevelopment #Consistency
To view or add a comment, sign in
-
Java Tutorial 11 🚀 ► https://lnkd.in/gg-GEmkY ► Learn about identifiers in Java with this tutorial. Understand their role as programmer-defined names for variables, constants, methods, classes, and more. Java Tutorials Playlist: ► https://lnkd.in/g-MdeE8X #JavaProgramming #LearnJava #Java #Programming #CodingLife #Codiing
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development