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 gyakorlás;
- import java.io.File;
- import java.io.IOException;
- import java.util.Scanner;
- /**
- *
- * @author DORAIGA_DXD
- */
- public class Gyakorlás {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)throws IOException {
- Scanner be=new Scanner (new File("be.txt"));
- String []s=new String[6];
- int []t=new int[6];
- int count=0;
- int convert;
- String bek;
- String []vag;
- while(be.hasNextLine()){
- bek=be.nextLine();
- vag=bek.split(" ");
- for (int i = 0; i < 6; i++) {
- t[count][i]=Integer.parseInt(vag[i+1]);
- }
- }
- be.close();
- for (int i = 0; i < 6; i++) {
- System.out.println(s[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement