Skip to content

Instantly share code, notes, and snippets.

@Chikitonik
Chikitonik / gist:6db052dcb3f98b134a25b5a4babfcb32
Created August 26, 2017 13:34
JavaRush Thread поток методов
/*
Кто меня вызывал?
*/
public class Solution {
public static void main(String[] args) throws Exception {
method1();
}
public static int method1() {
method2();
StackTraceElement[] a = Thread.currentThread().getStackTrace();
@P0huber
P0huber / FieldsAndConstructors.java
Created August 24, 2017 01:25
Fields of class and constructors. Поля класса и конструкторы. [Java]
public class FieldsAndConstructors {
public static void main(String[] args) {}
public static class Human {
private String s = "";
private int i = 1, i3 = 1, i4 = 1, i5 = 1;
private char ch = '0';
public Human() {}
public Human(String s) {}
public Human(String s, int i) {}