public static String getIndexedFormat ( int index , String format ) { if ( index < 1 ) throw new IllegalArgumentException ( ) ; if ( format == null ) throw new NullPointerException ( ) ; if ( format . length ( ) == 0 ) throw new IllegalArgumentException ( ) ; return String . format ( INDEXED_FORMAT , index , format ) ; }
Returns an indexed format by placing the specified index before the given format .