Posts

Showing posts from May, 2014

Faylda fərqli qiymətlərin müqayisəsi

Faylda dublikat qiymətlərin müqayisəsi üçün aşağıdakı java kod köməyinizə gələ bilər : Burada faylda olan bütün dublikat olanlar və tək olanlar hesablanacaq və nəticədə tək olanları çıxardacaq. import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; public class comparation {     public static void main (String  args[]) throws FileNotFoundException {         Map<Integer, Integer> countMap = new HashMap<Integer, Integer>();         List<Integer> myNumbers= new ArrayList();         BufferedReader reader = new BufferedReader(new FileReader("D:/documents/excel_report/report_172.csv"));         String line = null;         try {             while ((line = reader.readLine()) != null) {             ...