🚀 Week 3 of My Java Learning Journey! This week, I explored one of the most exciting and essential parts of Java — Control Flow and Loops! 🧠 It’s been amazing to see how logic and structure come together to make programs dynamic and powerful. 💻 🧩 Key Learnings: Conditional statements: if, if-else, else-if, switch Loops: for, while, do-while Control statements: break, continue Nested loops 💻 Practice Programs: for loop: Factorial, Multiplication Table switch case: Calculator, Day of Week while loop: Reverse Number, Sum of Digits if-else: Eligible for Vote, Grade Calculator …and many more! 🚀 📝 Extra Skill: Started solving Java logic problems on HackerRank to strengthen my problem-solving skills 💪 🔗 Check out my Week 3 GitHub repo: https://lnkd.in/gzvSXY8h Excited for Week 4, where I’ll dive into Methods and Arrays — bringing structure and data manipulation to the next level! 🎯 #Java #Programming #CodingJourney #Git #GitHub #100DaysOfCode #Learning #Backend #HackerRank Would you like me to make a Week 4 template now (similar tone and layout) so you can just fill it in next week?
Learned Control Flow and Loops in Java
More Relevant Posts
-
🚀 Week 4 of My Java Learning Journey! This week, I explored Methods and Arrays — the building blocks that make Java programs modular and data-driven! 🧠 It was exciting to understand how methods simplify code and how arrays efficiently store and manipulate data. 💻 🧩 Key Learnings: Methods: Definition, Parameters, Scope Static methods and why they’re important Calling and Returning Methods Arrays: One-Dimensional & Two-Dimensional Array operations: Sorting and Searching 💻 Practice Programs: Array operations: Find Max, Min, Reverse, Sum Menu-based Array Application Method-based problem solving and modular programs 📝 Extra Skill: Improved code organization and reusability using methods 🔗 Check out my Week 4 GitHub repo: https://lnkd.in/gPAqMUPf Excited for Week 5, where I’ll dive into String Concepts — taking Java to the next level! 🚀 #Java #Programming #CodingJourney #Git #GitHub #100DaysOfCode #Learning #Backend
To view or add a comment, sign in
-
🚀 Week 5 of My Java Learning Journey! This week, I explored String Concepts in Java — one of the most powerful and commonly used data types! 🔤 It was exciting to understand how Strings work internally and how many different operations can be performed using built-in methods. 💻 🧩 Key Learnings: What is String & how it is stored in memory String vs StringBuilder vs StringBuffer String methods (length, charAt, substring, indexOf, equals, compareTo, replace, trim, split, etc.) Immutable vs Mutable strings String concatenation & performance 💻 Practice Programs: Reverse a string Count vowels & consonants Check palindrome string Compare two strings Word / character frequency Splitting sentences into words 📝 Extra Skill: Explored performance difference between String vs StringBuilder using loop concatenation 🔗 Check out my Week 5 GitHub repo: https://lnkd.in/giiR_G86 Excited for Week 6, where I’ll dive into Object-Oriented Programming (OOPs) Concepts — taking Java to the next level! 🚀 #Java #Programming #CodingJourney #Git #GitHub #100DaysOfCode #Learning #Backend #Strings
To view or add a comment, sign in
-
💡 Day 14 of My Java Learning Journey ☕ Today was all about connecting the dots between operators, loops, and functions — three pillars that form the base of every Java program. 🔍 Here’s what I explored today: Bitwise, Increment-Decrement, and Assignment Operators ⚙️ — getting comfortable with how each affects data at the memory level. The power of for loops, break, and continue — learning how to control program flow effectively. Practiced problems like Fibonacci series, checking prime numbers, and finding Nth terms in a sequence. Deep dive into Functions — from return types and parameter passing (pass by value) to real-world function usage. Revisited Variables and Scopes — truly understanding how lifetime and accessibility affect program behavior. 🧠 Each topic might look simple, but combining them gave me a better sense of how Java logic works as a system. Every loop, every variable, and every function connects like puzzle pieces. 🚀 Small progress every day builds strong foundations — and I’m slowly starting to think like the compiler! #Java #LearningInPublic #CodingJourney #100DaysOfCode #DevelopersCommunity #CodeNewbie #Programming #SoftwareDevelopment #NamasteJava #WomenWhoCode #TechJourney
To view or add a comment, sign in
-
🚀 New Repository Alert! Just uploaded my latest repository — “Java Learnings” 📚 This repo is a collection of everything I’m learning in Core Java and Object-Oriented Programming — from basic syntax to advanced concepts and small practice projects. 💡 What’s inside: Java Basics (loops, arrays, strings) OOP Concepts (inheritance, polymorphism, abstraction) Exception Handling, Collections, and more Step-by-step progress in my Java journey I’ve been documenting my learnings regularly to track progress and share knowledge with others in the community. Check it out 👇 🔗 https://lnkd.in/dXtmE3bp #Java #Programming #LearningJourney #FullStackDeveloper #Coding #GitHub #SoftwareDevelopment #SafwanShaikh
To view or add a comment, sign in
-
-
✨ Day 5 of my LeetCode streak! Today I solved another interesting problem that taught me a cool bit manipulation trick 😎 💡 Problem: Smallest Number With All Set Bits Greater Than or Equal to N 📘 Statement: You are given a positive number n. Return the smallest number x greater than or equal to n, such that the binary representation of x contains only set bits (all 1s). Example: Input: n = 5 Output: 7 Explanation: Binary of 7 → 111 🧠 My Thought Process: At first, I noticed that numbers like 1 (1), 3 (11), 7 (111), 15 (1111) all have binary 1s only. So, the idea was simple 👇 Keep generating numbers like these (111...) until it becomes greater than or equal to n. To do that efficiently, I used bit manipulation: Start from mask = 1 Keep doing mask = (mask << 1) | 1 Stop when mask >= n The trick (mask << 1) | 1 means: Shift bits left (multiply by 2) Add one 1 at the end of the binary number 💻 Code (Java): class Solution { public int smallestNumber(int n) { int mask = 1; while (mask < n) { mask = (mask << 1) | 1; // shift left, add 1 at the end } return mask; } } 🧩 Example Dry Run: For n = 10: mask = 1 → 3 → 7 → 15 As soon as mask becomes 15 (>=10), that’s our answer ✅ Binary of 15 → 1111 🔍 Key Takeaways: Learnt how bit manipulation can make problems simpler and faster ⚡ Understood how left shift (<<) and bitwise OR (|) can be combined to create binary patterns Another cool use of binary logic to solve what looks like a simple math problem! 🗓️ LeetCode Streak: Day 5 / Consistency > Perfection 🔥 Every day I’m learning something new — one problem at a time. #LeetCode #100DaysOfCode #Java #BitManipulation #CodingJourney #ProblemSolving #Consistency
To view or add a comment, sign in
-
-
💻 LeetCode 50 Days Challenge — Day 8: Median of Two Sorted Arrays Day 8 of my #LeetCode50DaysChallenge ✅ Today’s problem was about finding the median of two sorted arrays — Median of Two Sorted Arrays ✨ 🧩 Problem: Given two sorted arrays nums1 and nums2, return the median of the two sorted arrays. The challenge was to merge them efficiently and then determine the middle value(s). 💡 Approach: I used Java 8 Streams to merge both arrays in a single line using IntStream.concat(), followed by Arrays.sort() to sort the combined array. Finally, I calculated the median by checking if the array length is even or odd. ⏱️ Time Complexity: O((m + n) log (m + n)) (due to sorting) 📊 Example: Input: nums1 = [1, 2], nums2 = [3, 4] Output: 2.5 Each day, I’m getting more comfortable with cleaner and modern Java techniques like Streams — small steps toward writing concise and efficient code 🚀 #LeetCode #CodingChallenge #Day8 #ProblemSolving #Java #SoftwareDevelopment #Consistency #50DaysOfCode
To view or add a comment, sign in
-
-
Me a few weeks ago: “I’ll never understand OOP. It’s just too confusing.” Me today: “Wait… inheritance isn’t always the answer. Sometimes, composition actually makes more sense.” Honestly, this did not happen overnight. I spent days trying to understand how all these concepts fit together encapsulation, inheritance, composition, interfaces, polymorphism and when to use what. I started coding small examples for each one. Most of them broke at first 😅 but with every error, things started to make a little more sense. I have now organized all those practice files topic wise and uploaded them to github. It’s not perfect, but it feels good to look back and see progress. 🔗 https://lnkd.in/dkqaDdbC #Java #OOP #GitHub #LearningJourney #KeepLearning #Programming
To view or add a comment, sign in
-
-
🎯 Java Bootcamp – Day 3 Highlights 💡 Object-Oriented Programming (OOP) Unlocked! Today’s session was a deep dive into the world of OOP — the secret sauce behind clean, scalable, and real-world Java applications. Here's what I tackled: 🧱 OOP Foundations 🔹 Class = Blueprint | Object = Real-world instance 🔹 Why OOP? Because modular, reusable code is the future! 🛠️ Constructors & Methods 🔹 Used constructors to auto-initialize object data 🔹 Built methods that do things and return results (like calculating interest!) 🧯 Error Handling 101 🔹 Explored try-catch to gracefully handle runtime errors 🔹 No more crashes — just clean, safe execution! 💰 Hands-On Project: BankAccount App 🔹 Built a class with deposit(), withdraw(), and displayBalance() 🔹 Added error checks for smoother user experience 🔹 Practiced real-world logic with clean OOP structure Each concept added a new layer to my Java mindset. Can’t wait to keep building smarter and cleaner code as the bootcamp continues! 💻🔥 #JavaBootcamp #Day3 #OOPinJava #LetsUpgrade #TechJourney #StudentDeveloper #ParulUniversity #100DaysOfCode #CodeWithPraneel #BuildInPublic
To view or add a comment, sign in
-
-
Hello Connection ❗ learning codding string frequency #day17 Today I practiced a core Java concept: calculating character frequency using HashMap. This small program helped me revise: 🔹 Iterating through a string using toCharArray() 🔹 Using HashMap to store counts 🔹 Applying getOrDefault() for cleaner code 🔹 Looping through entrySet() to print results 💡 Key Takeaway: Even simple problems can help us strengthen fundamentals. Mastering basics like HashMap, loops, and string manipulation makes advanced topics easier. If you're preparing for coding interviews, this is a must-practice pattern! 🔥 If you want, I can also create: ✔ A more professional version ✔ A beginner-friendly explainer ✔ A short motivational caption ✔ A carousel-style content script ✔ A Linkedin-optimized hashtag set #Java #JavaProgramming #JavaDeveloper #Coding #Programming #CodeNewbie #TechLearning #SoftwareDevelopment #HashMap #DataStructures #ProblemSolving #LearningEveryday #LearnToCode #CodeJourney #DeveloperLife #TechStudent #CodingPractice #InterviewPreparation #CodingSkills #LogicBuilding #ProgrammingBasics #DSA #TechCommunity #SoftwareEngineer #ComputerScience #TechSkills
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