public static boolean isZipName(String name){
  String ucName=name.toUpperCase();
  return (ucName.endsWith("ZIP") || ucName.endsWith("JAR"));
}

public static boolean isZipName ( String name ) { String ucName = name . toUpperCase ( ) ; return ( ucName . endsWith ( "ZIP" ) || ucName . endsWith ( "JAR" ) ) ; }
identify when a name belongs to a zip file .
