Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. 0.8940594
  2. 0.6853521
  3. 1.470214
  4.  
  5. BufferedReader in = null; {
  6. try {
  7. in = new BufferedReader(new FileReader("file.txt"));
  8. String read = null;
  9. while ((read = in.readLine()) != null) {
  10. String[] splited = read.split("\s+");
  11. for (String part : splited) {
  12. System.out.println(part);
  13. }
  14. }
  15. } catch (IOException e) {
  16. System.out.println("There was a problem: " + e);
  17. e.printStackTrace();
  18. } finally {
  19. try {
  20. in.close();
  21. } catch (Exception e) {
  22. }
  23. }
  24. }
  25.  
  26. {X:0.8940594
  27. Y:0.6853521
  28. Z:1.470214}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement