Description
In this course, you will learn :
- The fundamentals of Java before progressing to more advanced techniques.
- You will gain hands-on experience with Java fundamentals such as variables, constants, arithmetic operations, and how to debug simple programmes.
- As you progress through the course, you will apply what you have learned to more advanced topics such as conditional statements, loop statements, and array operations.
- You will have made the initial steps toward becoming a productive and efficient Java developer.
- You will be able to create simple programmes, and when you are ready, you will be able to create more difficult projects and work with more advanced material.
Syllabus :
1. A First Look at Java
- The Programming Language Java
- A Simple Java Program
- Comments
- Data Types
- Variables
- Constants
- Simple Input from the Keyboard
- A Problem Solved: Apples by the Box
- Writing, Compiling, and Running a Java Program
2. Arithmetic Expressions
- Arithmetic Operators
- Conversions between Numeric Data Types
- A Problem Partially Solved: Day of the Week
- Standard Mathematical Methods
- A Problem Solved: Wind Chill
3. Debugging Interlude—The Errors Programmers Make
- Kinds of Errors
- Compile-Time Errors
- More Compile-Time Errors
- Execution-Time Errors
4. Using Classes and Objects
- Terminology: Classes and Objects
- The Class String
- Methods of the Class String
- Strings and the Class Scanner
- A Problem Solved: Processing a String
- The Class LocalTime
- The Class BigDecimal
- Wrapper Classes
- The Class Random
- The Class DecimalFormat
5. Class Definitions—The Fundamentals
- Using a Class
- Beginning a Class Definition
- Defining Constructors
- Defining a Class’s Methods
- Local Variables
- Designing a New Class
- Implementing a New Class
- Passing Arguments
- A Problem Solved: Comparing Classes of Squares
6. Debugging Interlude—Common Mistakes with Classes
- A Silent Computational Error
- Undefined Variables of a Class Type
- Constructors
- Omitting the Method toString
- A Problem Solved: Extracting Strings
7. Decisions
- The if Statement
- Basic Comparisons
- A Problem Solved: Day of the Week
- The if-else Statement
- More Boolean Expressions in Comparisons
- A Problem Solved: Leap Years
- Assertions
8. Class Definitions—More Details
- Boolean-Valued Methods
- Private Methods
- Final Fields and Static Fields
- Enumerations
- A Problem Solved: Representing Coins
- Completing the Definition of the Class Coin
- Calling a Constructor from a Constructor
9. Multiway Decisions
- Nested if Statements
- More Examples of Multiway if Statements
- A Problem Solved: Health Club Welcome
- The switch Statement
- More Examples of the switch Statement
10. Debugging Interlude—Avoiding Mistakes; Finding Mistakes
- Avoiding Mistakes
- Debugging a Program in Development
- An Introduction to Testing
- Refining a Problem’s Solution
11. Repetition
- The Logic of a Loop
- The while Statement
- More Examples
- A Problem Solved: A Guessing Game
- Mistakes in Loops
- Boolean Variables in Loops
- Nested Loops
- The Scope of a Variable
- A Problem Solved: The Root of an Equation
12. Repetition Continued
- The for Statement
- More Examples
- Using an Enumeration with a for Statement
- The do Statement
13. Debugging Interlude—Debugging Loops
- Introduction: Debugging Interlude—Debugging Loops
- Testing
- Tracing
14. Arrays
- Motivation
- Array Basics
- More Array Basics
- A Problem Solved—Computing Deviations
- Partially Filled Arrays
- Counting Occurrences in an Array
- Locating the Smallest Entry in an Array
- Searching an Array for a Given Entry
- Arrays of Objects
- Arrays as Arguments or Return Values in a Method
- Array Assignments
- Copying an Array
- Array Equality
15. An Array-Based Data Structure
- The Data Collection Bag
- Specifying a Bag
- Identifying a Group of Core Methods
- Defining the Data Fields, Constructors, and Core Methods
- The Class BagOfStrings So Far
- Implementing More Methods
- Methods That Remove Strings
- The Methods getIndexOf and contains
- Testing the Methods That Remove Strings
- Testing the Completed Class BagOfStrings
16. Debugging Interlude—Debugging Arrays
- An Unallocated Array
- A Silent Error
- Array Index Out of Bounds