public final static boolean isJavaLikeFileName(String name){
  if (name == null)   return false;
  return indexOfJavaLikeExtension(name) != -1;
}

public final static boolean isJavaLikeFileName ( String name ) { if ( name == null ) return false ; return indexOfJavaLikeExtension ( name ) != - 1 ; }
returns true if the given name ends with one of the known java like extension . ( implementation is not creating extra strings )
