Programming 01 – Java
Your first step into programming—learn how to think computationally, solve problems, and build programs from scratch using Java.
Table Of Content
Course Information
| Course Title | Programming 1 |
| Programming Language | Java |
| Level | Undergraduate – Introductory |
| Prerequisites | None |
| Prior Programming Experience | Not Required |
| Instructor | Prof. Mostafa A. Elhosseini |
New to Programming?
No problem. This course starts from the fundamentals and assumes no previous programming knowledge.
What You Will Learn
Keep this section visual and concise.
Students will learn how to:
- Think logically and develop step-by-step solutions.
- Understand algorithms and basic problem-solving.
- Write, compile, and execute Java programs.
- Use variables, constants, and data types.
- Perform calculations and expressions.
- Make decisions using conditional statements.
- Repeat operations using loops.
- Design programs using methods.
- Work with arrays and strings.
- Debug and test simple Java programs.
Course Materials
| Lecture | Title | Presentation | Handout |
|---|---|---|---|
| 1 | Introduction – Hardware | ||
| 2 | Data Hierarchy | ||
| 3 | Program | ||
| 4 | Compiler – Interpreter | ||
| 5 | Why Java | ||
| 6 | Why Java Cont. | ||
| 7 | Algorithm – Pseudocode | ||
| 8 | Flowchart – Part 01 | ||
| 9 | Flowchart – Part 02 | ||
| 10 | How to create and Execute a Java application? | ||
| 11 | Hello World Program | PDF | |
| 12 | Variables | ||
| 13 | Printing Output | ||
| 14 | How to Read from User | ||
| 15 | How to Read from User – Cont | ||
| 16 | How to Read from User [Example] | ||
| 17 | Average of Three Numbers [Example] | ||
| 18 | Body Mass Index BMI [Example] | ||
| 19 | Target Heart Rate Calculator [Example] | ||
| 20 | Triangle Area [Example] | ||
| 21 | Arithmetic Operators | ||
| 22 | Increment / Decrement Operator | ||
| 23 | Relational (Conditional) Operators | ||
| 24 | Conditional if Statement | PDF (HW) | |
| 25 | Conditional if Statement – Example | ||
| 26 | if / else Statement | ||
| 27 | if / else Example | ||
| 28 | if / else Example [Maximum number] | ||
| 29 | if / else Example [Bank Balance] | ||
| 30 | if / else Example [Tax Calculator] | ||
| 31 | if / else / if | ||
| 32 | Logical operators | ||
| 33 | Nested if Trick | ||
| 34 | Switch Statement | ||
| 35 | Switch Statement – Example 01 | ||
| 36 | Switch Statement – Example 02 | ||
| 37 | Loop Through Flowchart | jnt | |
| 38 | For Loop | ||
| 39 | For Loop [ Example 01 ] | ||
| 40 | For Loop [ Example 02 ] | ||
| 41 | For Loop [ Example 03 ] | ||
| 42 | For Loop [ Example 04 ] | ||
| 43 | For Loop [ Example 05 ] | ||
| 44 | For Loop [ Example 06 ] | ||
| 45 | For Loop [ Average Number] | ||
| 46 | While Loop | ||
| 47 | While Loop – Sentinel controlled loop | ||
| 48 | While Loop [ Example] | ||
| 49 | do while Loop | ||
| 50 | Nested loops | ||
| 51 | Nested loops – Example 01 | ||
| 52 | Nested loops – Multiplication Table | ||
| 53 | Break / Continue | ||
| 54 | Arrays | ||
| 55 | Arrays Coding | ||
| 56 | Arrays – Example 01 | ||
| 57 | Arrays – Example 02 | ||
| 58 | Filling Arrays Class | ||
| 59 | Reverse an Array | ||
| 60 | Sorting an Array | ||
| 61 | Arrays [ 2-D Array ] | ||
| 62 | Arrays [ 2-D Array ] How to code ] | ||
| 63 | Methods | ||
| 64 | Methods [Static Method] | ||
| 65 | Methods [ Customized Method ] |
Programming Labs
| Lab | Description | Resources |
|---|---|---|
| Lab 1 |
Tutorial Sheets
Guided problem-solving sheets designed to reinforce lecture concepts and help students practice Java programming step by step with the Teaching Assistant.
Java Notes
Concise Java programming notes and quick-reference materials designed to help students review syntax, core concepts, and worked examples throughout the course.
| # | Topic | |
|---|---|---|
| 1 | BMI |
Assignments
| # | Assignment | |
|---|---|---|
| 1 | Programming Assignment |
Exams & Model Answers
| # | Exam | Model Answer |
|---|---|---|
| 1 | Midterm Exam | |
| Final Exam |
Main Textbooks
- Deitel, P. J., & Deitel, H. M. Java How to Program. Pearson.
- Liang, Y. D. Introduction to Java Programming and Data Structures. Pearson.
- Gaddis, T. Starting Out with Java: From Control Structures through Objects. Pearson.
- Horstmann, C. S. Core Java, Volume I: Fundamentals. Pearson.
- Sierra, K., Bates, B., & Gee, T. Head First Java. O’Reilly Media.
- Downey, A. B., & Mayfield, C. Think Java: How to Think Like a Computer Scientist. Green Tea Press.
Video Lectures

Java Programming 101
A step-by-step Java programming video course covering the fundamentals of programming, problem solving, control structures, methods, arrays, and practical coding examples.

No Comment! Be the first one.