public static int length ( String ... args ) { if ( args == null ) return 0 ; int acc = 0 ; for ( String arg : args ) { acc += arg . length ( ) ; } return acc ; }
Cumulative length of strings in varargs