public class SearchFile
extends java.lang.Object
Constructor and Description |
---|
SearchFile() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
searchByExtention(java.lang.String[] filesArray,
java.lang.String searchInput)
search correspondance of a String in a the end of String in an array.
|
java.lang.String[] |
searchByName(java.lang.String[] filesArray,
java.lang.String searchInput)
search correspondance of a String in a String array.
|
public java.lang.String[] searchByName(java.lang.String[] filesArray, java.lang.String searchInput)
filesArray
- is the array containing all the names of files.searchInput
- contain the search request.public java.lang.String[] searchByExtention(java.lang.String[] filesArray, java.lang.String searchInput)
filesArray
- is the array containing all the names of files.searchInput
- contain the search request.