if statements in java

A game of snake

snäke

A game of snake

As the last assignment of our java-course we had to create any kind of java based project that used a servlet based web-programming structure. The project had to include a database connection and a full create, read, update and delete that creates a table off the stored data in the database. 

Java homework part 3.

Java

The second part of previous homework will be here. This portion of the 10 assignments given was mostly about handling "String" variables with Java. I found the first few exercises to be simple and then the last two to be a bit difficult. I managed to get them correct though I still think that my code could have been a bit more "efficient" on some of the exercises.

Previous part of the same set of homework.

Java Homework part 1

Java

 

These posts will be a little simpler I'll just post short descriptions on what what was supposed to be done and the source code for my solutions below. Certain things in my solutions will be in Finnish due to course requirements.

Our first homework assignment was 10 little tasks to complete with Java. I used the required Eclipse Oxygen editor with Java Development kit version 1.8 to write these.

Basic Stuff

1/10

Create a calculator that calculates the amount of "daily fine" based on user income