💻 Java Practice – Arrays with Methods Saturday I worked on combining Java methods with array-based logic. Practiced: • Passing an array to a method • Writing a method to calculate the sum of an array • Finding the largest element using a method • Reversing an array through a method This helped connect DSA problem-solving with structured Java programming. Small exercises like these make it easier to understand how logic and program design work together. #Java #DSA #ProgrammingFundamentals #LearningInPublic #DeveloperJourney
Java Arrays with Methods Practice
More Relevant Posts
-
💻 Java Practice – String Operations Today I continued practicing Java String fundamentals. Worked on small exercises like: • Checking if a string is a palindrome • Counting words in a sentence • Replacing characters using replace() • Comparing strings correctly using equals() Also explored a small but important detail in string comparison and why some approaches are safer in real applications. Consistent practice with small problems helps strengthen programming fundamentals. #Java #ProgrammingFundamentals #LearningInPublic #DeveloperJourney #Consistency
To view or add a comment, sign in
-
💻 Java Practice – String Fundamentals Today I focused on practicing basic String operations in Java. Worked on small exercises like: • Finding the length of a string • Converting text to uppercase • Reversing a string using a loop • Counting vowels using charAt() Also revisited an important concept: the difference between == and .equals() when comparing strings. Small exercises like these help strengthen core programming fundamentals. #Java #ProgrammingFundamentals #LearningInPublic #DeveloperJourney #Consistency
To view or add a comment, sign in
-
Today I explained the concept of Aggregation in Object-Oriented Programming using Java. Aggregation represents a HAS-A relationship between classes where one class contains a reference of another class. 📌 Key Points Covered: ✔ Association in OOP ✔ HAS-A Relationship ✔ Aggregation Concept ✔ Real-world Example using Employee, Student, and Address Classes ✔ Java Code Implementation with Constructor and Objects Aggregation shows a weak relationship where both objects can exist independently. For example: 👉 Employee has an Address 👉 Student has an Address This concept is very important for building real-world object relationships in Java applications. 💻 If you are learning Java, OOP, or preparing for programming interviews, this concept will help you understand how objects interact in large applications. #Java #OOP #Aggregation #Programming #SoftwareDevelopment #Coding #JavaDeveloper #ObjectOrientedProgramming #LearningJava #TechEducation
Aggregation & Composition in Java | HAS-A Relationship Explained with Example
https://www.youtube.com/
To view or add a comment, sign in
-
Hello LinkedIn! Today I learned about Exception Handling in Java, which helps in handling runtime errors and keeping the program running smoothly. 📌 What I understood: ✅ What is an Exception ✅ Using try-catch blocks ✅ The finally block ✅ Types of Exceptions (Checked & Unchecked) ✅ Importance of handling errors in a program Exception handling helps developers write robust and reliable applications by preventing unexpected program crashes. Step by step, improving my Java fundamentals and programming skills 💻🔥 Consistency + Practice = Progress 🚀 #Java #Programming #ExceptionHandling #Coding #LearningJourney #Developer
To view or add a comment, sign in
-
-
A Tiny Java Mistake That Causes a Compile Error ❗ A Pitfall in Java: Why int i =08 doesn't work? Many developers get confused when Java throws an error for 08. The reason is simple but often overlooked. If a number starts with 0, Java treats it as an Octal number! (Base 8). Octal numbers only allow digits 0–7. That’s why: 08 ❌ 09 ❌ 010 ✔ (equals 8 in decimal) Small Java details like this can save hours of debugging. Swipe through the carousel to understand this Java concept clearly. #Java #JavaDeveloper #Programming #CodingTips #SoftwareEngineering #TechLearning #JavaForbeginners #JavaTipsForProfessionals
To view or add a comment, sign in
-
Day 27-What I Learned In a Day(JAVA) Java Revision – Decision Making Statements Today I revised all the Decision Making Statements in Java as part of my preparation. I went through concepts like: ✔️ if statement ✔️ if-else statement ✔️ else-if ladder ✔️ nested if ✔️ switch statement Understanding these concepts helps in controlling the flow of a program based on different conditions. Practicing them improved my logical thinking and programming skills. #Java #Programming #LearningJava #CodingJourney #StudentDeveloper
To view or add a comment, sign in
-
In our online #Java Programming Series, you'll learn the basics of programming and build confidence through practice. By the end, you'll be able to write more sophisticated programs in Java! #WeAreCBE Learn more: https://lnkd.in/gZacxt8c
To view or add a comment, sign in
-
-
Today I explained the concept of Inner Classes in Java, which is an important part of Object-Oriented Programming (OOP). In this session, we discussed how Composition (HAS-A Relationship) works and how Inner Classes help improve the structure and design of Java applications. 📌 Key Concepts Covered: Composition in Java HAS-A Relationship Inner Class Concept Advantages of Inner Classes Modularity Abstraction Security Shareability Reusability We also explored the types of Inner Classes: ✔ Static Nested Class ✔ Regular Inner Class ✔ Method Local Inner Class ✔ Anonymous Inner Class Understanding these concepts helps developers write better structured and more maintainable Java applications. If you are learning Core Java or Object-Oriented Programming, this topic is very important.
Java Inner Classes Explained | Static Nested Class, Composition & Types of Inner Class Java Tutorial
https://www.youtube.com/
To view or add a comment, sign in
-
Built a Java program to print number patterns 💻 Used nested loops to control rows and columns. Implemented outer loop for rows and inner loop for pattern logic. Printed numbers in increasing order for each row. Improved understanding of loop concepts in Java. Practiced pattern-based problem solving. Focused on writing clean and readable code. Strengthening logic building step by step 🚀 Consistency is key to mastering programming 🔥 Small programs like this build a strong foundation. #Java #JavaProgramming #CodingJourney #LearnToCode #StudentDeveloper #ProgrammingBasics #LogicBuilding #TechSkills #100DaysOfCode #DevelopersLife
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
-
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