00001 package gov.nasa.arc.ase.util; 00002 00003 public class Left { 00004 public static String format(int value, int digits) { 00005 String result = Integer.toString(value); 00006 00007 while(result.length() < digits) 00008 result = result + " "; 00009 00010 return result; 00011 } 00012 public static String format(String value, int spaces) { 00013 while(value.length() < spaces) 00014 value = value + " "; 00015 00016 return value; 00017 } 00018 }