🚀 Today’s Learning: ArrayDeque in Java In today’s session, I explored the concept of ArrayDeque, a powerful and efficient data structure in Java. 🔹 Learned the properties of ArrayDeque such as dynamic resizing and fast insertion/deletion 🔹 Explored important methods like addFirst(), addLast(), offer(), poll(), peek(), remove() 🔹 Understood how to access elements using loops and iterators 🔹 Discovered when to use ArrayDeque for both stack (LIFO) and queue (FIFO) operations 💡 Key Insight: ArrayDeque is a better alternative to Stack and often more efficient than LinkedList for queue operations. Excited to implement these concepts in coding and real-world applications! 💻✨ TAP Academy Bibek Singh #Java #ArrayDeque #DataStructures #Coding #LearningJourney #InterviewPrep
Java ArrayDeque Properties and Methods Explained
More Relevant Posts
-
🚀 Learning OOPs with Java – Abstraction & Polymorphism 💻 Today I practiced an important concept of Object-Oriented Programming: Abstraction with Polymorphism. 🔹 I created an abstract class Pen with an abstract method draw(). 🔹 Then I implemented two subclasses: BluePen and RedPen. 🔹 Both classes override the same method in their own way. 👉 This shows how one method can behave differently (Polymorphism). 💡 Key Learning: Abstract class defines structure, not implementation Subclasses must override abstract methods Same reference, different objects = powerful concept! 📌 Code Output: Pen -> Blue Pen -> Red I'm improving step by step and enjoying the journey of learning Java 🚀 #Java #OOP #Programming #Coding
To view or add a comment, sign in
-
-
🚀 Day 27/45 – Learning Recursion in Java On Day 27 of my Java learning journey, I explored Recursion, an important concept used to solve problems by breaking them into smaller subproblems. Recursion is widely used in algorithms and is a common topic in coding interviews. 📚 What I Learned Today Today I learned: ✔ What recursion is and how it works ✔ Importance of base case to stop recursion ✔ Solving factorial using recursion ✔ Generating Fibonacci series 💻 Practice Work To apply my learning, I implemented: • A recursive function to print numbers • Factorial calculation using recursion • Fibonacci sequence generation 🎯 Key Takeaway Recursion helps simplify complex problems and improves problem-solving skills. However, it should be used carefully to avoid performance issues. Understanding recursion is a big step toward mastering algorithms. #Java #Programming #LearningInPublic #CodingJourney #ProblemSolving #SoftwareDevelopment
To view or add a comment, sign in
-
🚀 Day 7 of My Java Learning Journey – Advance Arrays Today, I explored advanced concepts of arrays in Java, moving beyond basics into more structured and flexible data handling. Here’s what I learned 👇 🔹 Working with 2D Arrays (Matrix) → Understanding rows & columns using nested loops 🔹 Exploring Jagged Arrays → Handling arrays with different column sizes 🔹 Passing arrays to methods → Learning how arrays behave when passed as arguments 🔹 Returning arrays from methods → Building reusable and modular code 💡 This practice helped me realize how arrays can represent complex data structures and how methods make code more organized and reusable. 📌 Key Learning: Mastering arrays is essential because they are the building blocks for advanced topics like data structures and algorithms. 💻 Small steps every day = Big progress over time! #Java #Programming #CodingJourney #Arrays #2DArray #JaggedArray #100DaysOfCode #Learning #JavaDeveloper
To view or add a comment, sign in
-
🚀 Understanding Inheritance in Object-Oriented Programming (OOP) As part of my learning journey in programming, I explored one of the core concepts of OOP — Inheritance. Inheritance allows a class to acquire properties and behaviors from another class, promoting code reusability, scalability, and better structure in software development. 📌 In this visual, I’ve covered: • Introduction to Inheritance • Single Inheritance • Multilevel Inheritance • Hierarchical Inheritance • Multiple Inheritance • Hybrid Inheritance Each type demonstrates how classes can be related and extended in different ways, making programs more efficient and modular. 💡 This concept is widely used in languages like Java, Python, and C++ and is essential for writing clean and maintainable code. #TapAcademy #OOP #Java #Programming #SoftwareDevelopment #LearningJourney #Coding #ComputerScience
To view or add a comment, sign in
-
-
Day 38 – 44 of my Frontlines EduTech (FLM) AI-Powered Java Full Stack Journey Day 38: Started learning Collections in Java. Focused on ArrayList and how it stores dynamic data. Understood how it is different from arrays. Day 39: Learned about Iterator. Used it to traverse elements in collections. It made looping through data more clean and flexible. Day 40: Explored Set interface. Learned that it stores only unique elements. Good for removing duplicates from data. Day 41: Learned Map in Java. Stores data in key-value pairs. Very useful for real-world applications. Day 42: Covered Enum and Command Line Arguments. Also learned Static and Instance Blocks. Understood when and how they are executed. Day 43: Learned Clone, Comparator, and Comparable. Used for copying objects and sorting data. Important for customizing sorting logic. Day 44: Solved problem on frequency of characters. Used logic with collections to count occurrences. Good practice for improving problem-solving skills. Consistent learning, step by step. Fayaz S 🔗 Github: https://lnkd.in/gV_uis3J #Java #Collections #CodingJourney #100DaysOfCode #LearnJava #FullStack 🚀
To view or add a comment, sign in
-
-
🚀 Want to understand how ArrayList really works in Java? In this short video, I break down the basics of the List interface and show how ArrayList handles: ✅ adding elements ✅ resizing when full ✅ inserting at a specific index ✅ removing elements ✅ fast access with get(i) A simple visual explanation of one of the most used data structures in Java. Perfect for beginners, students, and anyone sharpening their DSA fundamentals. 💡☕ #Java #ArrayList #DataStructures #Algorithms #Programming #SoftwareDevelopment #Coding #JavaDeveloper #LearnToCode #ComputerScience #DSA #BackendDevelopment #Developers #TechEducation #CodeNewbie
Java ArrayList Explained in 45 Seconds
To view or add a comment, sign in
-
📘 Day 41 of My Learning Journey Today, I explored two important methods from the java.lang package: getClass() and toString(). 🔹 getClass() Method This method is used to get the runtime class of an object. It helps in understanding the exact class an object belongs to during execution. 🔹 toString() Method This method converts an object into a readable string format. By default, it returns the class name along with the hashcode, but it can be overridden to display meaningful information. 💡 Learning these methods helped me understand how Java represents objects internally and how we can customize their output for better readability. Step by step, improving my understanding of core Java concepts! 🚀 #Java #LearningJourney #Day41 #OOP #Programming #TechSkills
To view or add a comment, sign in
-
-
Today I explored one of the most essential data structures in Java — ArrayList. From understanding dynamic resizing to mastering common methods like add(), get(), and remove(), it’s amazing how flexible and powerful it is compared to traditional arrays. 💡 Key takeaways: ✔ Dynamic size makes it super flexible ✔ Easy data manipulation with built-in methods ✔ Cleaner iteration using for-each loops Grateful for the continuous learning journey and excited to apply this in real projects! 💻 #Java #Programming #CodingJourney #ArrayList #SoftwareDevelopment #LearningEveryday TAP Academy @Bibek singh
To view or add a comment, sign in
-
-
🚀 #Day11 of #111DaysOfLearningForChange Continuing my learning consistency challenge with Code for Change. Today, I continued with Object-Oriented Programming (OOP) in Java, focusing on how objects are created and managed. Topics covered: • Encapsulation • Constructors • Types of Constructors: – Parameterized Constructor – Non-Parameterized Constructor – Copy Constructor • Destructors While practicing, I focused on how data can be kept safe inside a class and how objects are created and initialized properly. This session gave me a clearer understanding of how real-world programs are structured using OOP concepts. Consistently learning and improving every day. #CodeForChange #111DaysOfLearningForChange #Day11 #OOP #Consistency #DSAwithJava
To view or add a comment, sign in
-
-
📆 Day 227 & 228 of 365 Days Focused on practicing DSA basics using Python along with continued Java practice. Worked on strengthening fundamentals like arrays, loops, and basic problem-solving patterns in Python, while also maintaining consistency with Java to improve logic and coding flow. These sessions were all about building a strong foundation across both languages and getting more comfortable with solving problems step by step. #Python #Java #DSA #ProblemSolving #CodingPractice #Developers #Programming #TechJourney #BuildInPublic #Learning #SoftwareEngineering
To view or add a comment, sign in
Explore related topics
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