Hello everyone!
Today's little project is a simple way of correcting tests with Java. In this piece of code I just defined two possible models or answers, they're all random, but the only thing needed is to update them with valid answers. The length of the test? I just did it for a 10-question test, but it can naturally be extended to the number of answers the teacher may want.
Here's a snapshot:
And the code:
Buscar este blog
Mostrando entradas con la etiqueta Java. Mostrar todas las entradas
Mostrando entradas con la etiqueta Java. Mostrar todas las entradas
jueves, 7 de febrero de 2013
domingo, 27 de enero de 2013
Basic Database in Java
Today's project is a simple one: creating a simple database coded in Java. When we enter a new contact in our mobile devices, we are always asked to provide some info such as our contact's name, last name, phone number, email, and so on. Here I show you a simple code in Java that works more or less the same way it does on a normal mobile device. Obviously, what we have in our devices has an interface to look more proffesional and attractive at the same time, but the code is something like that. Here are a couple of snapshots of the program and its functionalities:
And here's the code:
Codificador de Textos en Java
It was not until a couple of months ago that I started to feel interested in the Java programming Language. I had done some C++ previously, and I still code in my free time, but I particularly find Java a very cool language. Below is shown a simple code that converts (almost) any existing character into a binary sequence according to ASCII code.
Here is the output to the console. In this case, I entered my email adress:
Here is the output to the console. In this case, I entered my email adress:
And the code:
Code snippet - Text-to-Binary Encoder on Snipplr
Suscribirse a:
Entradas (Atom)
+20.47.19.png)



