When I try to correct the exercise, it tells me that I need to uncheck the line with System.out.println for the exercise to be considered correct, because that line is supposedly fine. However, when I uncheck it, it tells me that the exercise is incorrect, since nothing may be printed to the console for the task to be valid.
I tried downloading the official solutions, but those are incorrect as well.
package es.codegym.java.core.level01.task12;
public class Solution
{
public static void main(String[] args)
{
// Declaración de una variable de tipo int
int number = 10;
// Error: la variable no puede declararse dos veces
// int number = 20;
// Error: la variable debe inicializarse antes de usarse
// int uninitialized;
// System.out.println(uninitialized);
// Error: el tipo de la variable no coincide con el valor asignado
// String text = 123;
// Error: la variable debe declararse antes de usarse
// System.out.println(undeclaredVariable);
// El programa no debe imprimir nada en la consola, por lo que todas las líneas de salida están comentadas
System.out.println(number);
}
}