Tag Archives: java

Learn Java basics with a simple calculator

In this tutorial, we will create a simple text-based calculator. It’s meant to practice basic Java syntax, like println(), if- and basic arithmetic. The resulting calculator can only do the 4 basic operations and it does not recognize fractions. It is advised to first go over a basic tutorial like on w3schools.com/java before attempting this … Continue reading Learn Java basics with a simple calculator

Create a stand-alone Java App that displays info from a connected sensor

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

Include a processing file (.pde) in a webpage

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

Add RFID identification to a Java application

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