Please for help
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();
}
public static int getGlebokoscStosu() {
// tutaj wpisz swój kod
StackTraceElement[] element = Thread.currentThread().getStackTrace();
for(StackTraceElement stack : element)
{
System.out.println(stack.getLineNumber());
}
return Thread.currentThread().getStackTrace().length;
}
}