[gcj] Easy way to do Java I/O?

2014-03-31 Thread wonjun
Hey guys, I normally submit my programs in Python, but for this time I'd like to do a mix of both Python and Java. I wonder if this is a good way to do it: import java.io.*; public class Pogo { public String solve(int x, int y) { . // returns the answer... } public static void main(String[]

Re: [gcj] Easy way to do Java I/O?

2014-03-31 Thread abhishek purwar
Using console On Mon, Mar 31, 2014 at 9:56 PM, wonjun wrote: > Hey guys, > > I normally submit my programs in Python, but for this time I'd like to do > a mix of both Python and Java. I wonder if this is a good way to do it: > > > import java.io.*; > > public class Pogo { > public String solve(

Re: [gcj] Easy way to do Java I/O?

2014-04-01 Thread Bartholomew Furrow
That's how we used to do it when I competed in ACM using Java, but I think the Scanner class is probably what's most used now. Check out go-hero.net/jam and look for Java solutions to Code Jam problems, and you should be able to find some good ones. On Mar 31, 2014 10:26 AM, "wonjun" wrote: > Hey