Java tutorial
//package com.java2s; //License from project: LGPL import java.util.Arrays; import java.util.List; public class Main { private static final List<String> LIBRARY_EXTENSIONS = Arrays.asList(("so, dll, exe").split(",")); private static boolean isLib(String ext) { for (String s : LIBRARY_EXTENSIONS) { if (s.equalsIgnoreCase(ext)) return true; } return false; } }