Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static boolean isVideoAllowRead(String suffix) {
        String[] suffixs = { ".avi", ".mp4", ".mov", ".wmv", ".rm", ".rmvb", ".3gp", ".mkv", ".flv" };
        for (String s : suffixs) {
            if (s.equalsIgnoreCase(suffix)) {
                return true;
            }
        }
        return false;
    }
}