how to find number of weekdays in array
- by Chamal
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];
}