🚀 Java Logic Building – Sum of All Digits. Today, I worked on a simple Java program that finds the sum of all digits in a number. Even though it’s a basic problem, it really helps in understanding programming logic and improving problem-solving skills. What this program does: - Takes a number as input from the user - Separates each digit from the number - Adds all the digits together - Prints the final result Working on small programs like this reminds me that strong fundamentals are the key to becoming a better developer. Every big journey in programming starts with mastering the basics! #Java #Programming #CodingJourney #Learning #Developers #ProblemSolving
Java Sum of Digits Program
More Relevant Posts
-
📘 Day 31 | Collections Deep Dive Today we begin a deeper exploration of Java Collections. Understanding the difference between ArrayList and LinkedList is critical for writing efficient code. Remember this: ArrayList → Fast Access LinkedList → Fast Modification Choosing the right implementation impacts performance more than most beginners realize. 📌 Save this for revision 💬 Feedback is welcome #Java #Collections #CoreJava #LearningInPublic #Programming
To view or add a comment, sign in
-
-
Understanding Static in Java 🚀 Today I learned about the static keyword in Java and created this example to demonstrate three important concepts: ✅ Static Variable - Shared by all objects of the class ✅ Static Block - Executes once when the class is loaded ✅ Static Method - Can be called without creating an object In this Student class example: 1.schoolName is static, so all students share the same school 2.The static block runs first, before the main method 3.The add() method is static and can be called directly using the class name When we change Student.schoolName, it updates for all student objects immediately! #Java #Programming #Learning #JavaDevelopment #CodingJourney #SoftwareDevelopment
To view or add a comment, sign in
-
-
☕ Java Output Methods Explained – print() vs println() vs \n When learning Java programming, understanding how output works is very important. In the example program, three different output methods are used: 📌 What happens here? ✔ println() → Prints the text and moves the cursor to the next line ✔ print() → Prints the text but stays on the same line ✔ \n → Creates a manual line break (newline character) 💡 Output of this program: Hello World! Hello JishanHii Jishan Because print() does not move to the next line, the second and third outputs appear on the same line. Understanding these small details is essential when learning Java fundamentals and writing clean console output. 🚀 Every Java developer starts with simple programs like this before building large applications. 👉 Question for developers: Do you prefer using println() or \n for line breaks in Java? #Java #JavaProgramming #Coding #Programming #SoftwareDevelopment #BackendDevelopment #JavaDeveloper #LearnJava #ComputerScience #CodingTips
To view or add a comment, sign in
-
-
Practicing Java Stream API to write cleaner and more efficient code. Implemented filtering and counting logic using functional programming instead of traditional loops. Continuous learning, one concept at a time. #Java #StreamAPI #SoftwareEngineering #LearningByDoing
To view or add a comment, sign in
-
-
Day 7 | Full Stack Development with Java Today’s learning was all about strengthening logic building through Pattern Programming in Java. Working on multiple number and character patterns helped me understand how loops, conditions, and nested structures really work together. What I practiced today: Number Patterns Incremental and decremental sequences Binary patterns (0s and 1s) Diagonal number placements Pyramid-style number logic Character Patterns Alphabet triangles (A–E patterns) Reverse alphabetical structures Symmetrical letter designs Key Concepts Applied Nested for loops Row and column logic Controlling spaces and alignment Understanding pattern flow step by step Big Realization Pattern problems are not just assignments — they improve logical thinking and prepare the mind for real-world problem solving in backend development. Each pattern taught me how small logic changes can produce completely different outputs. Consistency check . 7 days of learning — building a stronger Java foundation every day. #Day7 #Java #PatternProgramming #FullStackDevelopment #LearningInPublic #CodingPractice #SoftwareDevelopment
To view or add a comment, sign in
-
-
Learning Java for nearly two years has presented challenges, particularly in finding well-structured notes that encompass everything in one place. To address this, I took the initiative to create my own notes—typed for easy updates and improvements over time. Although it required significant effort, the result has been rewarding. I am sharing this document here, hoping it will assist other Java developers or students in their learning journey. Currently, it covers all OOP concepts. #Java #ObjectOrientedProgramming #JavaDeveloper #Programming #JavaNotes
To view or add a comment, sign in
-
Day 3 of my Java learning journey 💻🚀 Today I explored one of the most important concepts in programming — Methods (Functions) in Java. Methods help in organizing code and making programs reusable and more structured. Here’s what I learned today: 🔹 What a method is and why it is used 🔹 How to create a method in Java 🔹 How to call a method from the main program 🔹 Understanding return values from methods I practiced writing programs such as: Finding the sum using a method Calculating factorial using a method Understanding how values are passed and returned in Java Learning how methods work really made me understand how real programs are structured. Slowly building strong fundamentals in Java step by step. Excited to move on to arrays tomorrow. #Java #Day3 #Programming #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
-
Day 8 of Learning Java, Control the Flow, Control the Code Today I unlocked something powerful… 👉 Loops. Because real programs don’t repeat code manually. They automate it. 🔁 for Loop When you know the count. Clean. Structured. Predictable. 🌊 while Loop Runs as long as the condition is true. Perfect when you don’t know the exact number of iterations. 🚀 do-while Loop Executes first. Checks later. Guaranteed at least one run. 💣 break & continue break → Stop everything. continue → Skip this round, move to the next. And yes… even learned Labeled break 👀 Nested loops? No problem. Big realization today? Loops aren’t just repetition. They’re control. If you control loops… you control program flow. Day 8 and the logic is getting stronger every single day 🔥🚀 Special thanks to Aditya Tandon sir and Rohit Negi sir #Java #CoreJava #100DaysOfCode #Programming #Developers #BuildInPublic
To view or add a comment, sign in
-
-
Just revisited the core of object-oriented programming in Java — Instance Variables! 🧠 These are the building blocks that give life to objects, storing unique data for each instance and enabling true encapsulation. Here's a quick snapshot from my notes: 🔹 Use: Store object-specific data & facilitate method access 🔹 Properties: Belong to an instance, initialized at object creation, can have different values per object 🔹 Why they matter: Encapsulation, flexibility in design, and memory efficiency Understanding these fundamentals deeply shapes how we write clean, scalable, and maintainable Java code. A huge shoutout to my mentor for guiding me through these concepts with clarity and patience. 🙏Thank you sir Anand Kumar Buddarapu #Java #OOP #InstanceVariables #Encapsulation #Programming #SoftwareDevelopment #LearningJourney #Mentorship #Tech #Coding
To view or add a comment, sign in
-
-
Solved 12 Pattern Programming Questions in Java today 💻 Pattern problems always look simple, but they really help improve logic building, loops understanding, and problem-solving skills. Consistent daily practice is helping me become more confident with Java fundamentals. Learning step by step and moving forward 🚀 #Java #Programming #CodingPractice #ProblemSolving #LearningJourney
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