Saturday, 15 October 2016

perssonal

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;


public class GolfGame {

/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub

String a[]= new String[4];
String b[]= new String[4];
String c[]= new String[4];
String s1[];
BufferedReader br=new BufferedReader(new FileReader("file.txt"));


for(int i=0; i<4; i++)

{
String s=br.readLine();
s1=s.split(" ");
a[i]=s1[0];
b[i]=s1[1];
c[i]=s1[2];
System.out.println(s1[0]+"::"+s1[1]+"::"+s1[2]);


}


}

}