Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package gyakorlás;
  7.  
  8. import java.io.File;
  9. import java.io.IOException;
  10. import java.util.Scanner;
  11.  
  12. /**
  13. *
  14. * @author DORAIGA_DXD
  15. */
  16. public class Gyakorlás {
  17.  
  18. /**
  19. * @param args the command line arguments
  20. */
  21. public static void main(String[] args)throws IOException {
  22. Scanner be=new Scanner (new File("be.txt"));
  23. String []s=new String[6];
  24. int []t=new int[6];
  25. int count=0;
  26. int convert;
  27. String bek;
  28. String []vag;
  29. while(be.hasNextLine()){
  30. bek=be.nextLine();
  31. vag=bek.split(" ");
  32. for (int i = 0; i < 6; i++) {
  33. t[count][i]=Integer.parseInt(vag[i+1]);
  34. }
  35. }
  36. be.close();
  37. for (int i = 0; i < 6; i++) {
  38. System.out.println(s[i]);
  39. }
  40.  
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement