Friday, February 20, 2015

CodeEval.com

Been doing some challenges on CodeEval.com
Also been working on the overworld map editor.

Came here to post my Java template for codeEval challenges:

// Sample code to read in test cases:
import java.io.*;
public class Main 
{
    public static void main (String[] args) throws IOException 
    {
        File file = new File(args[0]);
        BufferedReader buffer = new BufferedReader(new FileReader(file));
        String line;
        while ((line = buffer.readLine()) != null) {
            line = line.trim();
            System.out.println( getResults(line) );
        }
    }//MAIN.
    
    static String getResults(String line)
    {
        
    }
    
}//CLASS

No comments:

Post a Comment