A collection of Java practice codes, weekly exercises, and object-oriented programming (OOP) examples covering fundamentals through advanced concepts.
- Variables and Operators: Data types, arithmetic operators, bitwise logic, and type casting.
- Control Flow:
if,else-if,switch-casestatements, and conditionals. - Loops & Iteration:
for,while,do-while, nested loops, and pattern printing. - Arrays: 1D and 2D arrays, searching, and traversal.
- Classes & Objects: Constructors, instance variables, methods, and
thiskeyword. - Encapsulation: Access modifiers (
private,public,protected), getters and setters. - Collections:
ArrayList, dynamic lists, and object aggregation. - Inheritance & Polymorphism: Method overloading, method overriding,
superkeyword, dynamic binding, and type casting. - Abstract Classes & Interfaces: Interface implementation, abstract methods, and polymorphism.
Introduction-to-computer-programming/
├── 01-Course-Curriculum/
│ ├── Week-01-Introduction-to-Java/
│ ├── Week-02-Variables-and-Operators/
│ ├── Week-03-Conditionals-and-Control-Flow/
│ ├── Week-04-Loops-and-Iterations/
│ ├── Week-05-Arrays/
│ ├── Week-06-Classes-and-Objects/
│ ├── Week-07-Encapsulation-and-Relations/
│ ├── Week-08-Midterm-Exam-Review/
│ ├── Week-09-ArrayLists-and-Object-Arrays/
│ ├── Week-10-Overloading-and-Inheritance/
│ ├── Week-11-Inheritance-Hierarchies/
│ ├── Week-12-Polymorphism-and-Casting/
│ ├── Week-13-Packages-and-Access-Modifiers/
│ └── Week-14-Abstract-Classes-and-Interfaces/
└── 02-Supplementary-Exercises/
- Navigate to any exercise folder.
- Compile the Java file:
javac Example.java
- Run the compiled program:
java Example
- alperencok (https://github.com/alperencok)
This project is licensed under the MIT License.