Hi all, all my tasks are in package "pl".
Because of that I cannot pass the current task.
If I create package "com" with all subfolders, copy the solution there and try to run from there, it gives me the error "No task selected".
I think I need to change "CodeGym" settings globally to use package "com" instead of "pl".
How can I do that?
package pl.codegym.task.task09.task0906;
/*
Logowanie śladów stosu
*/
public class Solution {
public static void main(String[] args) {
log("W metodzie main");
}
public static void log(String s) {
//tutaj wpisz swój kod
String className = Thread.currentThread().getStackTrace()[2].getClassName();
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();
System.out.println(className + " : " + methodName + " : " + s);
}
}