public static String asPath ( final String ... strings ) { if ( strings == null ) return null ; final StringBuilder bldr = new StringBuilder ( ) ; for ( final String string : strings ) { if ( bldr . length ( ) != 0 ) bldr . append ( separator ) ; bldr . append ( string ) ; } return bldr . toString ( ) ; }
Inserts the platform - specific filesystem path separator between the provided strings .