An open API service indexing awesome lists of open source software.

https://github.com/praveenamirisetty/core_java_codes

Learning Core Java
https://github.com/praveenamirisetty/core_java_codes

java java-basics

Last synced: 5 months ago
JSON representation

Learning Core Java

Awesome Lists containing this project

README

          

# CORE_JAVA_CODES

![Java](https://img.shields.io/badge/Language-Java-orange?logo=java&logoColor=white)
![Status](https://img.shields.io/badge/Status-Active-brightgreen)
![Contributions](https://img.shields.io/badge/Contributions-Welcome-blue)

This repository contains **basic Java programs** covering the **fundamental concepts of Core Java**.
It is designed for **beginners** to learn:

- Programming syntax
- Conditional statements
- Loops
- Operators
- Type conversion

---

## 📂 Project
```
CORE_JAVA_CODES/

├── AssignmentOperators.java # Demonstrates assignment operators
├── DoWhileLoop.java # Example of do-while loop
├── FirstJavaProgram.java # Basic Hello World program
├── ForLoop.java # Example of for loop
├── IfElse.java # Demonstrates if-else statement
├── IfElseIf.java # Demonstrates if-else if ladder
├── Literals.java # Examples of Java literals
├── LogicalOperators.java # Logical operators (&&, ||, !)
├── RelationalOperators.java # Relational operators (>, <, ==, !=)
├── Switch_Case.java # Example of switch-case statement
├── TernaryOperator.java # Example of ternary operator (? :)
├── TypeConversion.java # Type casting and conversion
├── WhileLoop.java # Example of while loop
└── README.md # Project documentation
```
---

## 🗂 Program Categories

### **Day 1 – Basics**
- `FirstJavaProgram.java`
- `AssignmentOperators.java`
- `Literals.java`
- `LogicalOperators.java`
- `RelationalOperators.java`
- `Switch_Case.java`
- `TernaryOperator.java`
- `TypeConversion.java`

### **Day 2 – Conditional Statements & Loops**
- `IfElse.java`
- `IfElseIf.java`
- `ForLoop.java`
- `WhileLoop.java`
- `DoWhileLoop.java`

---

## 📌 Topics Covered

- ✅ **Java Basics** – Syntax, variables, and data types
- ✅ **Operators** – Arithmetic, Relational, Logical, Ternary
- ✅ **Conditional Statements** – `if`, `if-else`, `if-else-if`, `switch-case`
- ✅ **Loops** – `for`, `while`, `do-while`
- ✅ **Type Conversion** – Casting between data types
- ✅ **Literals** – Integer, floating-point, character, boolean, string

---

## 🚀 How to Run

1. **Clone the repository**
```bash
git clone https://github.com//CORE_JAVA_CODES.git
2. **Navigate to the project folder**
```bash
cd CORE_JAVA_CODES
3. **Compile any Java file**
```bash
javac FileName.java
```
4. **Compile any Java file**
```bash
javac FileName.java
```
5. **Run the compiled program**
```bash
javac FileName.java
```

## 📝 Notes

- All programs are **beginner-friendly** and **standalone**.
- Compatible with **JDK 8 or higher**.
- Each file demonstrates a **single concept for clarity**.

---

## 👨‍💻 Author

**Praveen Kumar**
Passionate about **Java, Backend Development, and Cloud Computing**.

---

## ⭐ Contribute

If you find this helpful, **star the repo** ⭐ and feel free to **contribute** by adding more Java programs!