jj logo
Take a quick tour of JJ
Teacher Registration
Student Registration
Industry Registration
Guest Registration
Some Humor
Friends
Quotes


Name
Password
School


..
JJ examples

Some short examples.
  1. Hello, world
  2. Average any number of quiz scores
  3. Character string concatenation, comparison, and getting the length of a character string
  4. Shows how to get a quote (") and a blackslash (\) inside a character string

Below examples put commands inside a routine inside a class.
  1. Find 7-of-a-kind dollar bill serial numbers THE LONG WAY! WARNING: Takes up to 25 minutes to run.
  2. Play a game with three dice. See if you can get the middle dice to be the average of the first and last dice.

This examples fixes Random, providing a class with a routine and a function so there are no side-effects of getting the last random value.
  • A Random class to provide a random function that is free of side effects.

Below examples use JJGui (buttons) instead of Input, Output and Outputln.
  1. Intro to JJ GUI using a simple "Button-Reply Pattern"
  2. A simple question, using grid panels
  3. A simple question, using mostly border panels
  4. TicTacToe (without using arrays)
  5. TicTacToe (using an array)
Return to
    JJ
home page
..