I'm not sure what should be corrected
package pl.codegym.task.task09.task0905;
/*
Krok po kroku po śladach stosu...
*/
public class Solution {
public static void main(String[] args) throws Exception {
int glebokosc = getGlebokoscStosu();
System.out.println(glebokosc);
}
public static int getGlebokoscStosu() {
// tutaj wpisz swój kod
//StackTraceElement stos[] = Thread.currentThread().getStackTrace();
// return stos.length;
return Thread.currentThread().getStackTrace().length;
}
}