Here you can find the source of isZip(File f)
public static boolean isZip(File f)
//package com.java2s; /*//from w w w . j av a2s . c o m * Copyright (c) 2013 TIBCO Software Inc. All Rights Reserved. * * Use is subject to the terms of the TIBCO license terms accompanying the download of this code. * In most instances, the license terms are contained in a file named license.txt. */ import java.io.File; public class Main { public static boolean isZip(File f) { return f.getName().endsWith(".zip"); } }