Alex_romaniuk97

Untitled

Jun 29th, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. public class Manager {
  4.  
  5. public void getOneData() throws IOException {
  6. String splitBy = ",";
  7. BufferedReader br = new BufferedReader(new FileReader("SingleseminarData.csv"));
  8. String line;
  9. String[] b = new String[3];
  10. while((line = br.readLine()) != null){
  11. b = line.split(splitBy);
  12. System.out.println(b[0] + " " + b[2]);
  13. }
  14. br.close();
  15.  
  16.  
  17.  
  18. FileWriter writer = new FileWriter("Сруинкул");
  19.  
  20. for (String s : b) {
  21. writer.append(String.valueOf(s));
  22. writer.append("\n");
  23. }
  24. writer.close();
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment