Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package eretttttttseggggi;
- import java.io.File;
- import java.io.*;
- import java.util.Scanner;
- /**
- *
- * @author Doraiga_DxD
- */
- public class Eretttttttseggggi {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)throws IOException{
- File f=new File("valaszok.txt");
- Scanner be=new Scanner(f);
- String [][]s;
- s=new String[2][501];
- String y;
- y=be.nextLine();
- int i=0;
- int k=0;
- while(be.hasNextInt()){
- s[i][k]=be.nextLine();
- i++;k++;
- }
- for (int j = 0; j < 2; j++) {
- for (int l = 0; l < 501; l++) {
- System.out.println(s[j][l]);
- }
- }
- // TODO code application logic here
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement