Leanpub Header

Skip to main content

Interactive Java workbook

Companion book to the Interactive Java workbook task collection

Start programming in Java from scratch - beginner friendly style.

  • Learn coding in the IDEA IntelliJ professional IDE for Java
  • 30 theory lessons (PDF, EPUB) with 150+ executable code examples (ZIP file - course for Intellij Academy plugin)
  • 480+ diverse programming tasks: answer questions, complete code, correct syntax errors, correct code, write alternative solutions (ZIP file - course for Intellij Academy plugin)
  • Tasks start very easy and gradually work toward medium ones, and finally the hard ones.
  • We got you covered! All tasks come with automated tests to see if your solution is correct, but also a predefined solution which can be compared side-by-side with your solution. More complex tasks come with hints to help you solve them.
  • If that is not enough, and you still feel confused about some task, there are 200+ explanation videos which explain the solution to medium and hard tasks step-by-step (explanation videos are sold separately).

Minimum price

$8.99

$8.99

You pay

$8.99

Author earns

$7.19

Packages

Details
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
421
Pages
89,657Words
About

About

About the Book

This workbook covers the basics of object-oriented programming in the Java programming language. The

assumption is that the user knows nothing about programming and starts "from scratch."

It consists of a free companion book (in PDF or EPUB formats) but, more importantly, a multi-volume collection of tasks which are provided as ZIP files (extras) containing complete courses for the IntelliJ Academy plugin.

Programming is one of those skills that is best learned through practice. That’s why you often hear and read:

   "Programming is learned through programming."

No one has learned to program simply by reading books or watching tutorials. Theory is essential, but it’s necessary to "roll up your sleeves" and program what you're learning. This means: creating your own program, doing a large number of examples, trying different solution variants, analyzing and improving other people's programs, etc.

This is exactly the motivation behind writing this workbook. There are numerous online courses, textbooks, tutorials, and educational software that contain important lessons about programming. However, there are very few interactive task collections that allow you to solidify that knowledge through concrete programming examples and diverse tasks.

Unfortunately, most of the available task collections are part of online courses, meaning that you cannot practice programming in a real-world software development environment, but through a web-browser and online-based environments with very limited features. That's why this workbook is provided as an addition of the IDEA IntelliJ enterprise-grade software development environment (actually, its Academy plugin), so one can get used to working in such a setting where all the features and tools available to a professional programmer are present.

Packages

Pick Your Package

All packages include the ebook in the following formats: PDF and EPUB

FREE - The Book with demo tasks starter kit

Minimum price

Suggested price$0.99

Contains: - The FULL version of the Interactive Java workbook (PDF and EPUB) - About 100 DEMO tasks with for the IntelliJ Academy plugin covering the first several lessons (see book extras, ZIP file "Interactive Java Workbook 1.zip"). - Solution explanation videos for these demo tasks are available free of charge via Ko-fi. If you like the book and the tasks, please consider buying the full version with all tasks.

Free!

  • Interactive Java workbook part 1 tasks
    This file contains tasks for the Interactive Java Workbook, designed as a course for the IntelliJ Academy plug-in and should be loaded directly into IntelliJ. The topics covered in part 1 (6 theory lessons + 102 tasks): - Introduction to Java - Class - Attribute - Objects, program execution and output to the screen Solution explanation videos are sold separately, but are available free of charge for the tasks in this part 1. They are available by subscribing to membership tiers on Ko-fi (please see the Video explanations tier).

The Book with full set of tasks for IntelliJ Academy

Minimum price

Suggested price$8.99

Contains: - The FULL version of the Interactive Java workbook (PDF and EPUB) - ALL 480+ tasks for the IntelliJ Academy plugin (see book extras, ZIP files inside). Solution explanation videos are sold separately via monthly memberships on Ko-fi.

$8.99

  • Interactive Java workbook part 1 tasks
    This file contains tasks for the Interactive Java Workbook, designed as a course for the IntelliJ Academy plug-in and should be loaded directly into IntelliJ. The topics covered in part 1 (6 theory lessons + 102 tasks): - Introduction to Java - Class - Attribute - Objects, program execution and output to the screen Solution explanation videos are sold separately, but are available free of charge for the tasks in this part 1. They are available by subscribing to membership tiers on Ko-fi (please see the Video explanations tier).
  • Interactive Java workbook part 2 tasks
    This file contains tasks for the Interactive Java Workbook, designed as a course for the IntelliJ Academy plug-in and should be loaded directly into IntelliJ. The topics covered in part 2 (10 theory lessons + 109 tasks) - Methods and arithmetic operators - Constructor - Global variables and methods - Constants - Relationships - Enumerated type Solution explanation videos are sold separately. They are available by subscribing to membership tiers on Ko-fi (please see the Video explanations tier).
  • Interactive Java workbook part 3 tasks
    This file contains tasks for the Interactive Java Workbook, designed as a course for the IntelliJ Academy plug-in and should be loaded directly into IntelliJ. The topics covered in part 3 (8 theory lessons + 167 tasks) - Algorithms and control statements (introduction) - The if statement - The switch statement - The for statement - The while statement - The do-while statement Solution explanation videos are sold separately. They are available by subscribing to membership tiers on Ko-fi (please see the Video explanations tier).
  • Interactive Java workbook part 4 tasks
    The Book with full set of tasks for IntelliJ Academy

Author

About the Author

Bojan Tomić

Hi!

I am a teacher of programming and programming enthusiast.

My passions include creating applications and teaching others how to do it.

At some point, I realized that learners abandon programming courses because:

1. they (learners) do not get enough practice

2. everything gets too hard too fast

3. getting good quality feedback during practice is difficult

What was missing was some good, pedagogically sound interactive practice materials for learning how to program. The assignments should start very easy and work gradually towards harder ones. Learning should be available (and affordable) to all, and I hope that the materials available here prove to be useful.

I am also an avid cyclist and believe in green transport solutions.

Happy coding! (and cycling also :)

Contents

Table of Contents

  • 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

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub