Skip to content

Instantly share code, notes, and snippets.

@thejavalistener
Created December 18, 2013 14:36
Show Gist options
  • Save thejavalistener/8023340 to your computer and use it in GitHub Desktop.
Save thejavalistener/8023340 to your computer and use it in GitHub Desktop.
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
int nDig = 7;
for( int v:valores )
{
System.out.println( UString.padInt(v,nDig));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment