Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 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 eretttttttseggggi;
  7.  
  8. import java.io.File;
  9. import java.io.*;
  10. import java.util.Scanner;
  11.  
  12. /**
  13. *
  14. * @author Doraiga_DxD
  15. */
  16.  
  17. public class Eretttttttseggggi {
  18.  
  19. /**
  20. * @param args the command line arguments
  21. */
  22. public static void main(String[] args)throws IOException{
  23. File f=new File("valaszok.txt");
  24. Scanner be=new Scanner(f);
  25. String [][]s;
  26. s=new String[2][501];
  27. String y;
  28. y=be.nextLine();
  29. int i=0;
  30. int k=0;
  31. while(be.hasNextInt()){
  32. s[i][k]=be.nextLine();
  33. i++;k++;
  34. }
  35. for (int j = 0; j < 2; j++) {
  36. for (int l = 0; l < 501; l++) {
  37. System.out.println(s[j][l]);
  38. }
  39. }
  40. // TODO code application logic here
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement