
Java tutorial: create a simple calculator
Learn how to create a simple calculator in Java.
Learn how to create a simple calculator in Java.
In this tutorial, you will make a simple game in which balls are launched, which we then have to catch. The user of the game controls a basket in which the balls must be collected. The aim is to catch as many balls as possible and earn points that way. The basket is located at … Continue reading Java tutorial: Programming a Catch-the-ball game
This article assumes you have already some experience in creating Java Apps. For instance if you have done the first 2 lectures of the course Application Development. You should also have prepared the DHT temperature/humidity sensor and have a working sketch for it (eg. by completing step 1 and 2 of practical assignment 2 of … Continue reading Create a stand-alone Java App that displays info from a connected sensor
Part of series about Android App Development. This is the second article, in which you will learn to create a first interactive userinterface.
Part of series about Android App Development: first step: installing Android Studio and create a ‘hello world’ app.
To show your processing creation in a webpage (or WordPress post or page*) you can use the example code below. * in WordPress, add a Custom HTML block (or switch to HTML-mode) to enter HTML-code in a post or page. Please take note of the following: Including scripts like this only works online (hosted on … Continue reading Include a processing file (.pde) in a webpage
Sometimes I get a question from a student or colleague on why we choose Java as our base for the introduction to programming classes. Here are some quick reasons: It is a ‘proven’ language to quickly learn programming It is used as first learned programming language in a lot of other universities and high schools It … Continue reading Why learn programming with Java?
Go to Canvas for the latest edition of this course. This course is part of module 4, “Smart Products”. This course is an introduction to designing apps and programming. It teaches both Java and Arduino (C language), and is geared towards learning how to build ‘smart’ prototypes. More info:
This example presumes you already have some basic knowledge about Arduino and programming Java applications with Eclipse. If you have an RFID reader module attached to your computer (via a USB serial connection) you can read RFID data from a Java application. For instance, you can use the unique id (Card UID) to identify something or … Continue reading Add RFID identification to a Java application
To use leJOS you need 32 bits versions of the JDK and the Java Runtime Environment (JRE). Also, sometimes after updates of Java or multiple removals/additions the environment can ‘go bad’. Follow the steps below to test the environment and fix it when necessary. Test Java Windows must be able to find Java programs. Therefore the … Continue reading Checking your Java environment (for use with leJOS)