...
Документация по GC - https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html
Примеры
Блок кода | ||||||
---|---|---|---|---|---|---|
| ||||||
static char[] alphabet; static { alphabet = new char[26]; for (char c = 'a'; c <= 'z'; c++) { alphabet[c - 'a'] = c; } } public static void main(String ... args) { while(true) { String word = ""; for (int i = 0; i < 1000; i++) { word += alphabet[(int)(Math.random()*26)]; } System.out.println("word = " + word); } } private static recurrent(int i) { recurrent(++i); } |
...