Interactive Java workbook

Interactive Java workbook

Bojan Tomić
Buy on Leanpub

Table of Contents

Interactive Java workbook

  • Introduction
    • About this workbook
    • Introductory video tutorials
    • Types of tasks in this workbook
    • How is this workbook organized
    • What is Programming
    • About the Java programming language
  • What is a class?
    • NOTE
    • Lesson content
    • Class, definition and elements
    • Layout of keys on the keyboard
    • Reserved words in Java
    • Comments in Java
    • Convention for naming classes
    • Code formatting: “breaking” code into multiple lines
    • What are syntax errors and how are they marked in code
    • Most common errors
    • Time for tasks
  • What are attributes
    • Lesson Content
    • Attributes - definition, and meaning
    • Simple and complex data types in Java
    • Java naming convention for attributes
    • Default and initial values
    • Code Formatting: Indentation
    • Most common errors
    • Time for tasks
  • Objects, program execution and printing on the screen
    • Lesson Content
    • Objects - definition, and purpose
    • Executing (running) a Java program (main method)
    • Printing on the screen (print and println methods)
    • Most common errors
    • Time for tasks
  • What’s next?
  • Methods
    • Lesson Content
    • Methods (header, naming convention, body, return value)
    • Variables
    • The assignment operator (=)
    • Method parameters
    • Most common errors
  • Arithmetic operators
    • Lesson content
    • Arithmetic operators in Java
    • Operator precedence
    • Most common errors
  • Variable scope
    • Lesson content
    • Variable visibility (variable scope)
    • Visibility conflict and reserved word this
    • Most common errors
  • Method overloading
    • Lesson content
    • What is method overloading
    • Most common errors
  • Parameter passing
    • Lesson content
    • The concept of parameter passing
    • Passing method parameters by value and by reference
    • Most common errors
  • Constructor
    • Lesson content
    • What is a constructor - idea, declaration
    • Default, no-argument, and parameterized constructors
    • Most common errors
  • Global variables and methods (static)
    • Lesson content
    • What is a global (static) variable?
    • Calling and using a global (static) variable
    • What is a global (static) method?
    • Calling and using a global (static) method
    • Most common errors
  • Constants (final)
    • Lesson content
    • What is a constant (reserved word final)
    • Declaring and calling constants, naming conventions for constants
    • Static constants
    • Most common errors
  • Relationships
    • Lesson content
    • What are relationships
    • Declaring and referencing related objects
    • Most common errors
  • Enumerated type (enum)
    • Lesson content
    • What is the enumerated type (reserved word enum)
    • Declaring and calling an enumerated type, naming convention
    • Attributes and methods in enums
    • Most common errors
  • Algorhitms and algorithmic structures - introduction
    • Lesson content
    • Algorithm – definition and examples
    • Alternative algorithms
    • Algorithmic structures – linear, branching, and looping
  • Overview of control (flow) statements in Java
    • Lesson content
    • Implementation of algorithmic structures in Java - the control (flow) statements
    • The if statement
    • The switch statement
    • The for statement
    • The while statement
    • The do-while statement
    • The for-each statement
  • The if statement
    • Lesson content
    • What is the if statement – declaration and elements
    • Comparison operators
    • Logical operators and their precedence, compound conditions
    • Nested if statements
    • Most common errors
  • The switch statement
    • Lesson content
    • What is the switch statement - declaration and elements
  • The for statement (loop)
    • Lesson content
    • What is the for statement - declaration and elements
    • Nesting statements within for loops
    • The break, return, and continue statements in loops
    • Alternative writing of the for loop
    • Infinite loop and how to stop it
    • Un-executable Loop
    • Most common errors
  • The while statement (loop)
    • Lesson content
    • What is the while statement - declaration and elements
    • Nesting statements within a while loop
    • The break, return, and continue statements
    • Alternative writing of the while loop
    • Infinite while loop
    • Un-executable while Loop
    • When to use a while loop and when to use a for loop, alternative writing of the while loop as a for loop and vice versa
    • Most common errors
  • The do-while statement (loop)
    • Lesson content
    • What is the do-while statement - declaration and elements
    • Nesting statements within the do-while loop
    • The break, return, and continue statements
    • Alternative writing of the do-while Loop
    • Infinite do-while loop
    • Un-executable do-while loop
    • When to use for and while loops vs. do-while loop, alternative writing of one type of loop using another
    • Most common errors
  • Arrays - introduction
    • Lesson content
    • What is an array - declaration, initialization, and capacity
    • Accessing array elements via indices
    • Most common errors
  • The for-each statement
    • Lesson content
    • What is a for-each loop – declaration and elements
    • Nesting statements inside a for-each loop
    • The break, return, and continue statements
    • Infinite and non-executable for-each loops
    • When to use for-each and when to use other types of loops
    • Most common errors
  • Algorithms for working with arrays - an overview
    • Lesson content
    • Algorithms for working with arrays
    • Types of algorithms for working with arrays
  • Array algorithms for searching and displaying/retrieving element values
    • Lesson content
    • About algorithms for searching and displaying/retrieving array elements
    • Searching and displaying all array elements (in normal or reverse order)
    • Searching and displaying only certain array elements (in normal or reverse order)
    • Searching and retrieving specific values from the array (first or last occurrence)
    • Searching and counting specific values in the array
    • Most common errors
  • Array algorithms for adding/inserting element values
    • Lesson content
    • About algorithms for adding elements (values) to an array
    • Setting all array elements to a specific value
    • Adding a value to the first/last free position
    • Adding/inserting a value while maintaining array order (e.g., ascending or descending)
    • Inserting a value into a specific position in the array
    • Most common errors
  • Array algorithms for replacing element values
    • Lesson content
    • About algorithms for replacing (values of) array elements
    • Replacing a value in a specific position in the array
    • Replacing a specific value in an array at all found positions
    • Replacing a specific value in an array (first or last found)
    • Shifting all elements of an array by one position “right” or “left”
    • Most common errors
Interactive Java workbook/overview

Interactive Java workbook

course_overview

Java programming tasks workbook assignments beginner friendly

count_chapters
begin_reading
download
p_implied_book_part_name

Interactive Java workbook28 chapters

Begin ›
  1. Introduction

  2. What is a class?

  3. What are attributes

  4. Objects, program execution and printing on the screen

  5. What’s next?

  6. Methods

  7. Arithmetic operators

  8. Variable scope

  9. Method overloading

  10. Parameter passing

  11. Constructor

  12. Global variables and methods (static)

  13. Constants (final)

  14. Relationships

  15. Enumerated type (enum)

  16. Algorhitms and algorithmic structures - introduction

  17. Overview of control (flow) statements in Java

  18. The if statement

  19. The switch statement

  20. The for statement (loop)

  21. The while statement (loop)

  22. The do-while statement (loop)

  23. Arrays - introduction

  24. The for-each statement

  25. Algorithms for working with arrays - an overview

  26. Array algorithms for searching and displaying/retrieving element values

  27. Array algorithms for adding/inserting element values

  28. Array algorithms for replacing element values