Created
December 3, 2015 15:48
-
-
Save ProZhar/91dcace77e9197854b70 to your computer and use it in GitHub Desktop.
com.javarush.test.level09.lesson02.task01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level09.lesson02.task01; | |
/* Каждый метод должен возвращать свой StackTrace | |
Написать пять методов, которые вызывают друг друга. Каждый метод должен возвращать свой StackTrace. | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
method1(); | |
} | |
public static StackTraceElement[] method1() | |
{ | |
method2(); | |
//напишите тут ваш код | |
return Thread.currentThread().getStackTrace(); | |
} | |
public static StackTraceElement[] method2() | |
{ | |
method3(); | |
//напишите тут ваш код | |
return Thread.currentThread().getStackTrace(); | |
} | |
public static StackTraceElement[] method3() | |
{ | |
method4(); | |
//напишите тут ваш код | |
return Thread.currentThread().getStackTrace(); | |
} | |
public static StackTraceElement[] method4() | |
{ | |
method5(); | |
//напишите тут ваш код | |
return Thread.currentThread().getStackTrace(); | |
} | |
public static StackTraceElement[] method5() | |
{ | |
//напишите тут ваш код | |
return Thread.currentThread().getStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment