May. 21st, 2008

juan_gandhi: (Default)
that in the old b/w movies people blink all the time, it's a part of their play; now, in the present times, hardly anybody blinks at all, except of course that fucking Brit that made blinking his profession - I mean Hugh Grant.

ха-ха

May. 21st, 2008 02:00 pm
juan_gandhi: (Default)
Вот у вас аджакс на странице, что-то там покурочил; потом мы пошли по какому-то линку, приходим назад - бляааа... всё пропало. Оно, конечно, не пропало, но нужно page reload, чтобы выплыло.

Ну? Ваши решения? ;)
juan_gandhi: (Default)
import java.util.Set;
import java.util.HashSet;

public class SetX {
  public static void main(String[] args) {
    Set<Set<?>> ss1 = new HashSet<Set<?>>();
    Set<Set<?>> ss2 = new HashSet<Set<?>>();
    Set<Integer> si = new HashSet<Integer>() {{ add(0); }};
    ss1.add(si);
    ss1.add(ss1);
    ss1.add(ss2);
    ss2.add(si);
    ss2.add(ss1);
    System.out.println(ss1);
  }
}


Exception in thread "main" java.lang.StackOverflowError

(what's funny, if you add ss1 to itself, it's okay, toString() manages it.
juan_gandhi: (Default)
Ведь может быть просто президентом; заседать на заседаниях, важно кивать головой; читать детям в детсаде книжки пока взрываются дома. А для решения текущих задач есть премьер-министр. Хай суетится.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
2425 26272829 30
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 1st, 2025 10:54 am
Powered by Dreamwidth Studios