output.append( String.valueOf(index) );
output.append( index );
    private static String formatSlot( int index, Mounted mount,                                      boolean isHit, boolean isDestroyed ) {        StringBuffer output = new StringBuffer();        output.append( "         <slot index=\"" );        output.append( String.valueOf(index) );        output.append( "\" type=\"" );        if ( mount == null ) {            output.append( "System" );        } else {            output.append( mount.getType().getInternalName() );            if ( mount.isRearMounted() ) {                output.append( "\" isRear=\"true" );            }            if ( mount.getType() instanceof AmmoType ) {                output.append( "\" shots=\"" );                output.append( String.valueOf                                (mount.getShotsLeft()) );            }        }        if ( isHit ) {            output.append( "\" isHit=\"" );            output.append( String.valueOf(isHit) );        }        output.append( "\" isDestroyed=\"" );        output.append( String.valueOf(isDestroyed) );        output.append( "\"/>" );        output.append( NL );        // Return a String.        return output.toString();    }