how to find number of weekdays in array

Posted by Chamal on Stack Overflow See other posts from Stack Overflow or by Chamal
Published on 2011-01-07T06:51:23Z Indexed on 2011/01/07 6:53 UTC
Read the original article Hit count: 145

Filed under:

i hav a array of date. In this array, i want to find how many weekdays in that array. So how can i do that using java..

*here i read lines from csv file & put those into values. 
*values[2] contain the dates of that csv file.
*So now i want to find number of weekdays in values[2].
    FileInputStream fis=new FileInputStream("c:/sample.csv");
    InputStreamReader isr=new InputStreamReader(fis);
    BufferedReader bf = new BufferedReader(isr);
        while (bf.ready()) {
               String line = bf.readLine();
               String[] values=line.split(",");
               String date=values[2];
                           }

© Stack Overflow or respective owner

Related posts about java