RingJavafor Ring

Tutorials

Step-by-step lessons for people who are new to Java. Each one explains the ideas, then shows a small program you can run, with its real output and screenshots.

How to use the tutorials#

Every tutorial has a program in the folder samples/UsingJava/tutorials. Read the explanation, run the program, change it, and try the exercises at the end. The programs are tested together with the rest of the package, so the output you see here is the output you will get.

Shell
cd samples/UsingJava/tutorials
ring ch01_first_look.ring            # a console tutorial
ring ch16_window.ring                # a window

A window stays open until you close it. To close it automatically after a time, set RINGJAVA_AUTOCLOSE to a number of milliseconds first.

Note

The lessons about databases, JSON and HTML (12 to 14) download a package from Maven Central the first time; after that they run from the cache in ~/.ringjava/maven. Lesson 15 compiles a Java class, so it needs a JDK.

The lessons#

After the tutorials, Applications shows forty-seven complete programs.

RingJava - use Java classes and methods from Ring programs.