Developed a Java program to perform basic mathematical operations 💻 Used Scanner class to take user input. Implemented addition, subtraction, multiplication, and division. Applied conditional statements to handle division by zero safely. Improved understanding of Java syntax and structure. Practiced working with data types and operators. Strengthened logic-building and problem-solving skills. Focused on writing clean and readable code. Small projects build strong programming foundations 🚀 Learning consistently and moving towards advanced Java concepts 🔥 #Java #JavaProgramming #CodingJourney #LearnToCode #ProgrammingBasics #StudentDeveloper #LogicBuilding #ComputerScience #TechLearning #VSCode
Java Program for Basic Math Operations with Scanner Class
More Relevant Posts
-
🚀 Just Learned: Transpose of a Matrix in Java Today I practiced how to transpose a matrix using Java. Matrix transpose means converting rows into columns and columns into rows. It is a very useful concept in programming, especially in data processing, image manipulation, and mathematical computations. While working on this problem, I improved my understanding of: • 2D arrays and nested loops • Index swapping logic (arr[i][j] → arr[j][i]) • Writing clean and optimized code • Problem-solving approach for matrix-based questions Learning these concepts step by step is helping me build a strong foundation in Data Structures and Java programming. Every small concept adds up to big improvements in coding skills. Looking forward to practicing more matrix problems and strengthening my logic building skills #Java #CodingJourney #DSA #Programming #LearningInPublic #Matrix #ProblemSolving
To view or add a comment, sign in
-
-
Built a Java program to find the largest among three numbers 💻 Used Scanner class for user input. Applied conditional statements using if-else if-else. Used logical operators (>= &&) for comparison. Focused on clean and structured coding practices. Improved understanding of decision-making in Java. Practiced object creation and input handling. Strengthening core programming fundamentals step by step 🚀 Small logic-building programs improve problem-solving skills 🔥 Consistency in coding leads to mastery 💡 #Java #JavaProgramming #CodingJourney #LearnToCode #Programming #StudentDeveloper #LogicBuilding #ComputerScience #TechSkills #VSCode
To view or add a comment, sign in
-
-
Day -10 🚀 Arrays in Java – Building Strong Programming Foundations Arrays are one of the most fundamental concepts in Java programming. Understanding them clearly helps in writing efficient and structured code. 🔹 Stores multiple values of the same data type 🔹 Index starts from 0 🔹 Easy access using array[index] 🔹 Update values anytime 🔹 Find size using array.length Arrays are widely used in loops, sorting, searching, and data processing. Mastering arrays makes learning Data Structures & Algorithms much easier. Step by step, improving my Java fundamentals and strengthening my problem-solving skills. 💡 #Java #Arrays #Programming #CodingLife #DataStructures #ComputerScience #LearningJourney
To view or add a comment, sign in
-
-
🚀 Day 20 / 180 – DSA with Java 🚀 📘 Topic Covered: Dynamic Programming (Fibonacci Pattern) 🧩 Problem Solved: Climbing Stairs Problem: Given n steps, where you can climb either 1 or 2 steps at a time, determine the total number of distinct ways to reach the top. Approach: Identified this as a Fibonacci-pattern problem. Used an iterative dynamic programming approach by storing only the last two computed values, reducing space complexity while maintaining O(n) time efficiency. Key Learning: ✔️ Recognizing DP patterns in simple problems ✔️ Optimizing space from O(n) to O(1) ✔️ Avoiding recursion for better performance If you’re also preparing for DSA, let’s connect and learn together 🤝 #DSA #Java #180DaysOfCode #LearningInPublic #DynamicProgramming #ProblemSolving #Consistency
To view or add a comment, sign in
-
-
🚀 Day 14 – Solving Array Challenges in Java Not every day is about learning a new concept. Some days are about strengthening what we already know by solving more challenges 💪 Today, I focused on solving multiple array-based problems to improve my logical thinking and problem-solving skills in Java. 🧩 Problems I Solved: ✔ Find the Sum and Average of all elements in an array ✔ Count the Number of Occurrences of a specific element ✔ Find the Maximum and Minimum element in an array ✔ Check whether the given array is Sorted ✔ Create a new array after Deleting a specific element 🛠 Skills Improved: • Loop mastery (for, while) • Conditional logic • Array traversal techniques • Edge case handling • Writing clean and modular code 💡 Key Takeaway: Consistency matters more than speed. Every small challenge solved builds stronger fundamentals in programming. Step by step improving problem-solving ability and confidence in Core Java 🚀 #100DaysOfCode #Java #CoreJava #DSA #ProblemSolving #Arrays #DataStructures #Programming #CodingJourney #DeveloperLife #SoftwareDeveloper #BackendDeveloper #JavaDeveloper #LearningJourney #TechSkills
To view or add a comment, sign in
-
-
☕ Java Variables Basics – Understanding Data Storage in Programming One of the first concepts every programmer learns in Java is variables. Variables are used to store data values that a program can use and manipulate. 10 5 Jishan Ahmad 5 🔹 What this program demonstrates ✔ Integer variables (int a, int b) store numeric values ✔ String variable stores text data ✔ Variables can change values during program execution ✔ a = b assigns the value of b to a Understanding variables is the foundation of programming, because almost every program depends on storing and manipulating data. 🚀 Mastering basics like variables and data types helps developers move toward problem solving, algorithms, and software development. 💡 Strong fundamentals make strong programmers. #Java #JavaProgramming #Coding #Programming #SoftwareDevelopment #LearnJava #ComputerScience #JavaDeveloper #CodingJourney #BackendDevelopment
To view or add a comment, sign in
-
-
🚀 Day 6 of Learning Java – Pattern Programming Today, I practiced pattern programming using loops in Java. It helped me improve my logical thinking and understand how nested loops work in real coding problems. 🔹 Topics Covered: • for loop 🔹 What I Practiced: ✔️ Star patterns (*) ✔️ Number patterns (01–25 format) 🔹 Sample Code: Java class Day6 { public static void main(String[] args) { int i; for(i = 1; i <= 5; i++) { System.out.print("* "); } } } 🔹 Output: * * * * * 💡 Key Takeaway: Pattern programming is a great way to strengthen problem-solving skills and understand loop logic, which is important for coding interviews. 🔥 Learning something new every day and getting better step by step! #Day6 #Java #CodingJourney #Programming #Developers #Learning #PatternProgramming
To view or add a comment, sign in
-
-
💻 Java Programming Practice – Bubble Sort. As part of my daily Java practice, I implemented the Bubble Sort algorithm to sort numbers in an array. 📌 What this program does: • Takes the array size as input from the user • Accepts array elements using Scanner • Uses Bubble Sort logic to compare and swap elements • Displays the sorted array in ascending order 📊 Sample Result: Input: 1, 23, 543, 6, 55, 987, 3, 45 Output: 1, 3, 6, 23, 45, 55, 543, 987 💡 Key concepts used: ✔ Arrays in Java ✔ Nested loops ✔ Sorting algorithms ✔ Problem-solving logic I am continuously practicing Java programming and data structures to improve my skills for software development roles and IT placements. #Java #DataStructures #BubbleSort #CodingPractice #JavaDeveloper #Programming #LearningJourney
To view or add a comment, sign in
-
-
✨DAY-16: 💻 From Messy Variables to Clean Arrays – The Power of Smart Coding! This meme perfectly shows the difference between writing code without arrays and using arrays in Java. 🔴 Without Arrays: Java Copy code int mark1 = 86; int mark2 = 71; int mark3 = 90; int mark4 = 65; 👉 Too many variables 👉 Hard to manage 👉 Not scalable 👉 Messy and inefficient Imagine handling 100 student marks like this 😅 🟢 With Arrays: int[] marks = {86, 71, 90, 65, 79}; ✅ Organized ✅ Easy to access using index ✅ Simple to loop ✅ Clean and scalable Arrays help us store multiple values of the same type in a single variable, making our code structured and efficient. 📌 Daily Life Lesson: When things are unorganized, life feels stressful. When structured properly, everything becomes simple and productive. Learn concepts clearly — code smarter, not harder 🚀 #Java #Programming #Arrays #CodingLife
To view or add a comment, sign in
-
-
💻 Day 10 – Understanding Abstraction in Java Today I explored one of the core pillars of Object-Oriented Programming: Abstraction. Abstraction is about hiding implementation details and showing only the essential features of an object. What I learned today: • How to create an abstract class • Difference between abstract methods and normal methods • How child classes implement abstract methods • How interfaces work in Java • Real-world understanding of “what to do” vs “how to do” Key takeaway: Encapsulation hides data Abstraction hides implementation Using abstract classes and interfaces makes code: ✔ More scalable ✔ More structured ✔ Easier to maintain Every day I’m understanding how OOP concepts make real-world applications more organized and powerful 💡 #Java #OOP #Abstraction #LearningInPublic #ComputerScience #Day10 #CodingJourney
To view or add a comment, sign in
-
Explore related topics
- Build Problem-Solving Skills With Daily Coding
- Essential Java Skills for Engineering Students and Researchers
- Logical Reasoning Skills
- Java Coding Interview Best Practices
- Ways to Improve Coding Logic for Free
- Clean Code Practices For Data Science Projects
- How to Develop Structured Problem Solving Skills
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