Learning Java using JShell
4.6 (14 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
9,561 students enrolled

Learning Java using JShell

Covers variables, operators, conditional statements like loops and methods
4.6 (14 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
9,561 students enrolled
Created by Christoph Tornau
Last updated 1/2019
Current price: $13.99 Original price: $19.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 2 downloadable resources
  • 1 coding exercise
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • You made the start with Java programming and can execute simple commands using the JShell.
  • You can use JShell for the first usefull programms.
Course content
Expand all 40 lectures 03:05:31
+ Introduction and Installation
2 lectures 12:57

Introduction to the new approach of starting to learn programming of this course. Content of the course.

Preview 04:43

You download and install the Oracle Java JDK. Afterwards we will start JShell.

Preview 08:14
+ Operators and Variables
4 lectures 15:00

We are doing some simple math.

Preview 01:33

First commands in JShell.

Preview 02:10

Introduction to variables.

Preview 06:07

Variables practically used.

Preview 05:10
+ String, Chars and Booleans
2 lectures 09:50

Defining and using variables with text and logical values including the use of their operators.

String, Chars and Booleans and their Special Operators
In Practice: String, Chars and Booleans and their Special Operators
+ Compound Assignment Operators and Unary Operators
4 lectures 10:37

The compound assignment operators save you some typing.

Compound Assignment Operators

Only one input variable.

Unary Operators

See compound and unary operators in action.

In Practice: Compound and Unary Operators

It's time for a small break and a summary of what we have learned.

Summary Variables and Operators
+ The If-Statement
4 lectures 12:15

Using flow charts to demonstrate the If-Statement.

Preview 05:20

We have If-Statements within JShell.

In Practice: If-Statement

An If-Statement as an operator.

Ternary Operator

Let's compute a maximum with the ternary operator.

In Practice: The Ternary Operator
+ The Switch-Statement
2 lectures 11:05

Description of the Switch-Statement and some words about the Break-Statement.

The Switch-Statement

Always use break;

In Practice: The Switch-Statement and the common pitfall in it
+ The While-Loop and the Do-While-Loop
3 lectures 12:27

The While-Loop and the Do-While-Loop as flow chart and code and their differences.

The While-Loop and the Do-While-Loop

The While-Loop with curly braces and without.

In Practice: The While-Loop

The Do-While-Loop with curly braces and without and the differences to the While-Loop.

In Practice: The Do-While-Loop
+ Arrays
5 lectures 15:57

What are Arrays?

Introduction into Arrays

There are two ways to define an array.

Defining an Array

Writing to and reading from an array. The bounds of an array and the error messages you get.

Using an Array

Arrays in Arrays

Multidimensional Arrays

Practical examples of arrays.

In Practice: Using Arrays
+ The For-Loop and the For-Each-Loop
6 lectures 18:23

How the For-loop looks like in code and in a flow chart diagram.

Introduction into the For-Loop

Why programmers use the For-loop so often.

Advantages and Disadvantages of the For-Loop

How to use the For-Loop together with an array or an iterator.

For-Loops with Arrays and Iterators

A relative to the For-Loop.


Diving into more features of the For-Loop

More features: Curly braces and break & continue

Have a look at an example of the For-Loop and the For-Each-Loop in JShell.

In Practice: The For-Loop & the For-Each-Loop
+ Methods
3 lectures 18:33

Basics about methods. How a method is declared and how it is invoked.

Introduction into methods

Let's create some methods and use them using JShell.

In Practice: Methods

Normally there is a fixed number of parameters to a method. But it is possible to provide a variable number of parameters.

Methods with variable parameter lists
  • Basic knowledge about your computer.
  • The course is for the Windows operating system. But you can transfer it to other operating systems.
  • A learning mind. Learning a programming language is not easy and takes a lot of time and dedication.

This course is intended for all students who are new in programming and want to learn a programming language. It covers a new approach to learn to program by using the shell which is included since Java 9. It covers the basic concepts of variables, variable assignments, operators and conditional statements like the if-statement or the while-loop. It does not cover object oriented programming which has to be learned separately.

Who this course is for:
  • Bloody beginners in programming who learn Java as their first programming language.
  • Students who are overwhelmed by the very first start.