// java

Saving and loading tasks in MOA

MOA (Massive Online Analysis) is a great opensource and free software for data stream mining. If you are an enthusiastic of machine learning, classification or clustering, you should try it. You can work with MOA using the GUI, as well as the command line interface via Java. If you are using the graphical interface, you [...]

Calcular edad en Java

Me ha costado averiguar cómo se calcula la edad de una persona usando Java, así que dejo aquí mi solución por si a alguien más le pudiera servir. public int calcularEdad(Calendar fechaNac){     Calendar today = Calendar.getInstance();         int diff_year = today.get(Calendar.YEAR) – fechaNac.get(Calendar.YEAR);     int diff_month = today.get(Calendar.MONTH) – [...]

Leer un fichero de texto en Java

Me ha costado demasiadas búsquedas en Google cómo leer un mísero archivo de texto en Java. Os dejo la solución que encontré aquí. import java.io.BufferedReader; import java.io.File; import java.io.FileReader; public class MainClass {   public static void main(String[] a) {     FileReader fr;     try {       fr = new FileReader [...]

Bienvenido a The Power of Mind

The Power of Mind es el blog personal de DraXus, orientado a temas de Informática, Software Libre e Internet. Más sobre el autor…

del.icio.us flickr plurk twitter skype
linkedin facebook tuenti lastfm youtube

Recomendados

Yo participo en el Software Freedom Day 2011
AndaluciaPeople.com
Alhambrismo.com

flickr

Switch to our mobile site