Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.79 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.79 KB

Java Basics – Practice Programs

Navigation: Main Index | Chapter Guide

Welcome to the Java Basics Practice Programs section!

This folder contains beginner-friendly Java programming exercises designed to improve logical thinking, problem-solving skills, and understanding of Core Java concepts.

All programs are written using Java 8 and include practical examples.

Topics Covered

Beginner Programs

  1. Student Details
  2. Arithmetic Operations
  3. Area of Rectangle
  4. Kilometers to Meters
  5. Average of Five Numbers

Intermediate Programs

  1. Swap Numbers using temp variable
  2. Swap Numbers without using temp variable

Real-World Programs

  1. Compound Interest
  2. Fahrenheit to Celsius

How to Run Java Programs

Step 1: Make sure JDK 8 or a compatible JDK is installed.

Step 2: Open the terminal in the program's directory.

Step 3: Compile the Java file.

javac 01-StudentDetails.java

Step 4: Execute the program.

java StudentDetails

Learning Objectives

  • Understand Java syntax and programming fundamentals.
  • Practice variables and data types.
  • Apply type casting and operators.
  • Learn to accept user input using Scanner.
  • Improve logical thinking through programming exercises.
  • Understand how Java is used in simple real-world applications.

Contribution

Suggestions, improvements, and additional practice problems are welcome.

If you find these programs helpful, consider giving this repository a ⭐ Star.

Happy Coding! ☕