Java tutorial
//package com.java2s; public class Main { private static boolean containsCssJsPic(String url) { if (url.contains(".jpg") || url.contains(".css") || url.contains(".js") || url.contains(".png") || url.contains(".gif") || url.contains(".jpeg")) return true; else return false; } }