This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pablosz.worm.util; | |
import java.util.ArrayList; | |
public class Hashtable<K,V> | |
{ | |
private ArrayList<K> keys; | |
private ArrayList<V> values; | |
public Hashtable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pablosz.worm; | |
import android.graphics.Canvas; | |
import android.view.SurfaceHolder; | |
import com.pablosz.worm.util.Hashtable; | |
import com.pablosz.worm.util.LifecicleComponents; | |
import com.pablosz.worm.util.Number; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String removeLeft(String s,String toRmv) | |
{ | |
return s.substring(toRmv.length()+1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.post.fechas; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
public class FechaActual | |
{ | |
public static void main(String[] args) | |
{ | |
// obtengo la fecha de hoy como un timestamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.fechas; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
public class SumaDias | |
{ | |
public static void main(String[] args) | |
{ | |
// defino una fecha (2/octubre/1980) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.util; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
public class UDate | |
{ | |
public static String longToString(long f) | |
{ | |
GregorianCalendar g=new GregorianCalendar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.post.fechas; | |
import com.thejavalistener.util.UDate; | |
public class UDateTest | |
{ | |
public static void main(String[] args) | |
{ | |
// obtengo la fecha de hoy y la muestro | |
String hoy = UDate.now(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.util; | |
public class UString | |
{ | |
// Retorna una cadena compuesta por n caracteres c. | |
public static String replicate(char c, int n) | |
{ | |
String aux = ""; | |
for(int i = 0; i<n; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.cadenas; | |
public class TestUString | |
{ | |
public static void main(String[] args) | |
{ | |
// estos son los valores que vamos a mostrar | |
int[] valores = { 5,23, 4, 132, 83, 4612, 3, 7 }; | |
// a lo sumo esperamos valores de nDig digitos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0010,Pedro ,1991/08/23,M | |
0020,Amalia ,1992/10/12,F | |
0030,Rolando ,1993/11/01,M | |
0040,Carla ,2001/03/21,F | |
0050,Osvaldo ,2005/12/20,M | |
0060,Marisa ,1990/03/15,F |
OlderNewer