Skip to content

Sankar27104/JavaBasics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Basic Programs

This repository contains a collection of basic Java programs designed for beginners to understand the fundamentals of Java programming. Each program covers essential topics that help in building a strong foundation in Java.

🧠 Topics Covered

  • Hello World
  • Variables and Data Types
  • Operators and Expressions
  • Conditional Statements (if, if-else, switch)
  • Loops (for, while, do-while)
  • Arrays
  • Functions/Methods
  • Object-Oriented Concepts (Classes and Objects)
  • String Handling
  • Basic Pattern Printing

🚀 Getting Started

To run any Java file:

  1. Clone this repository
  2. Open a terminal and navigate to the file location
  3. Compile the file: javac FileName.java
  4. Run the program: java FileName

💡 Purpose

This repository is aimed at:

  • Beginners learning Java
  • Practice for interviews or coding challenges
  • Reference for students in CS courses

📁 Folder Structure

/JavaBasics 
  ├── HelloWorld.java 
  ├── Variables.java 
  ├── IfElse.java 
  ├── Loops.java 
  └── ...

📌 Contributions

Feel free to fork the repo, improve the code, or add more programs!

About

Basic java programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages