Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class Teste
- {
- public static void main(String[] args) throws FileNotFoundException
- {
- System.out.println("Hello World!");
- Scanner s;
- String[] vet;
- String linha, m5;
- int comparacao, i=0;
- File[] fs=new File("/sdcard/forex/m5").listFiles();
- System.out.println(fs.toString());
- for (File a:fs)
- {
- System.out.println(a.getName());
- s = new Scanner(a);
- while (s.hasNextLine())
- {
- linha=s.nextLine();
- System.out.println(linha);
- vet=linha.split(";");
- if(vet.length>2){
- m5=vet[1];
- comparacao=Integer.parseInt( vet[2] );
- Forex.contabiliza(m5,comparacao);
- System.out.println(String.valueOf((i*100)/(30000*fs.length)));
- }
- }
- s.close();
- }
- Forex.imprime();
- System.out.println("Concluído");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement