First try

First try

por Stefan Simic -
Número de respuestas: 1

Hi there,

Can someone tell me how i can fix this problem? 
help

En respuesta a Stefan Simic

Re: First try

por Richard Lobb -

CodeRunner tests generally have to generate some output. A test case int x = 1 is a declaration, and doesn't generate any output. Since none of the tests generate any output, the Got column of the result table has been hidden.

If this is an example of a Java write-a-class question then the tests will have to create an instance of the student-supplied class and call it. For example:

Tester tester = new Tester();
System.out.println(tester.test(17));

I suggest you check out the sample questions supplied in the samples folder in the CodeRunner distribution, e.g. here.

Richard