File extension is in extensions list: Difference between revisions

Content added Content deleted
(+ D entry)
Line 123: Line 123:
{{works with|Java|6+}}
{{works with|Java|6+}}
This version is the same as the main version only replace the definition for <code>extIsIn</code> with:
This version is the same as the main version only replace the definition for <code>extIsIn</code> with:
<lang java5>public static boolean extIsInFF(String test, String... exts){
<lang java5>public static boolean extIsIn(String test, String... exts){
for(int i = 0; i < exts.length; i++){
for(int i = 0; i < exts.length; i++){
exts[i] = exts[i].replaceAll("\\.", "");
exts[i] = exts[i].replaceAll("\\.", "");