Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String[] getTokens(String s)
- {
- String[] tokens;
- tokens = s.split(",");
- tokens = s.split(" ");
- int pos = 0;
- for(int i = 0; i < tokens.length; i++)
- {
- if(tokens[i].equals(";") || tokens[i].equals(","))
- {
- tokens[i] =" ";
- pos = i;
- break;
- }
- }
- public void execute()
- {
- File[] filesArray = dt.returnFiles();
- for(File f : filesArray)
- {
- try
- {
- fileContent = dt.loadFile(f);
- for(int i=0; i < fileContent.size(); i++)
- {
- if(fileContent.get(i).equals(",") || fileContent.get(i).equals(";") ||
- fileContent.get(i).isEmpty())
- {
- fileContent.remove(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement