You don't need to put the full method signature in order to call a function, just the parameters. Also, since line is going to be used locally in your getInput() method, I would just declare the method to take no arguments and call it. You will also run into run-time errors because you declared the main method private, but it should be public. You will have a similar problem (though, this one will register as a compile error) becuase getInput() should also be declared public.
public void getInput()
// your getInput code
public static void main(String args)