Day 11 of #50DaysOfCode in Java 🚀 Today’s challenge was to find the sum of digits of a given number. It’s a simple yet powerful logic-building exercise that helps strengthen understanding of loops and arithmetic operations. 🔢 Every day, one small program — one step closer to mastering Java! 💪 #Java #CodingJourney #Skillrack #LearningByDoing #50DaysOfCode #Programming #StudentCoder
More Relevant Posts
-
Day 8 of #50DaysOfCode – Java Today I practiced loops and conditional statements by writing a program to print all even numbers from 1 to 50. 💻 What I did: Used a for loop to iterate from 1 to 50 Checked each number using the modulus (%) operator Printed all even numbers 🧠 Concepts learned: Loops (for) Conditional statements (if) Modulus operator (%) Learning Java step by step! 💪 #Java #LearnInPublic #CodingJourney #Programming #50DaysOfCode
To view or add a comment, sign in
-
Day 4 of my #100DaysOfDSA Challenge 💻 Today I solved a classic problem — Reverse of a String in Java. It’s one of the most basic yet fundamental questions that helps you understand how strings work in Java (immutable vs mutable). Here are 3 simple approaches I learned today 👇 🔹 Using loop (beginner-friendly) 🔹 Using StringBuilder (efficient way) 🔹 Using recursion (interview-level concept) Small steps every day → Big results soon 🚀 #Java #DSA #CodingChallenge #100DaysOfCode #Programming #DeveloperJourney #Learning
To view or add a comment, sign in
-
-
Day 6 of #50DaysOfCode – Java Today I practiced arrays and loops by writing a program to take 5 numbers from the user and calculate their sum and average. 💻 What I did: Stored numbers in an array Calculated the sum using a for loop Calculated the average and displayed the results 🧠 Concepts learned: Arrays (int[]) Loops (for) Arithmetic operations (+, /) Input/output using Scanner Excited to keep learning step by step! 💪 #Java #LearnInPublic #CodingJourney #50DaysOfCode #Programming
To view or add a comment, sign in
-
Hierarchical Inheritance in Java In Hierarchical Inheritance, multiple child classes inherit from a single parent class. Here, class A represents a base class, and classes B and C extend it — each providing their own implementation of the car() method with different colors. This example demonstrates how inheritance promotes code reusability and method overriding in object-oriented programming. #Java #OOPs #Inheritance #Learning #10000Coders #Coding #SoftwareDevelopment
To view or add a comment, sign in
-
-
Day(11/30)| Java Problem Solving Series Today I practiced an interesting problem — Check if a number is a Palindrome At first, my logic had a small mistake I was creating a new variable inside the loop (int n = x;) which kept resetting the value of x each time. That caused the loop to never actually reverse the number properly. After debugging, I corrected it by updating x directly instead of re-declaring n. Key Learning: Always check your loop variables carefully — one small mistake (like re-initializing inside the loop) can change the entire logic! #Java #Coding #ProblemSolving #LearningEveryday #LinkedInCodingJourney #Debugging #Programming
To view or add a comment, sign in
-
-
Today I explored how multithreading works in Java. Instead of running tasks one by one, threads allow multiple tasks to execute parallelly, improving performance and efficiency. 🔥 In this program, I created three separate threads: ✅ One takes user input and performs addition ✅ One prints numbers ✅ One prints characters The interesting part? ✔ Using .run() → tasks execute sequentially ✔ Using .start() → each task runs in its own thread, at the same time Here’s the output behavior 👇 🧵 All three tasks run concurrently, and each one completes independently. I’ve attached the code screenshot below. ⬇️ Learning in small steps every day. 🚀 #Java #Multithreading #Programming #Threads #CodingJourney #LearnByDoing #JavaDeveloper #TapAcademy
To view or add a comment, sign in
-
-
Exploring how Java handles URLs and extracts protocol, host, and file details. Small steps toward mastering network programming. 💻 #Java #Programming #LearningInPublic #DeveloperJourney #CodeNewbie #NetworkingInJava
To view or add a comment, sign in
-
-
💻 Exploring Patterns in Java! Today, I implemented a simple yet classic program — a Hollow Square Pattern using nested loops in Java. This program helps in understanding: ✅ The logic behind nested for-loops ✅ The use of conditional statements for pattern control ✅ How small programs improve logical thinking & coding structure Here’s the output for input 3: *** * * *** Every line of code brings a new learning opportunity. 🔥 #Java #Programming #PatternPrinting #DeveloperJourney #CodingPractice #LogicBuilding #LearnWithCode
To view or add a comment, sign in
-
-
🔥 Day 7 of Java Learning Series 🔥 Topic: 🧩 StringBuffer vs StringBuilder 🔹 StringBuffer (Java) Definition: A mutable sequence of characters that allows modification of strings without creating new objects. ✅ Thread-safe (synchronized), best for multi-threaded environments. 🔹 StringBuilder (Java) Definition: A mutable sequence of characters that allows modification of strings without creating new objects. ⚡ Not thread-safe, but faster, ideal for single-threaded environments. 🧠 Summary: Both allow efficient string manipulation, but choose based on thread safety vs performance. 10000 Coders #Day7 #Java #100DaysOfCode #Programming #StringBuilder #StringBuffer #JavaLearning #CodingJourney
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