Quantcast
Channel: Scratch Where It's Itching
Viewing all articles
Browse latest Browse all 73

Double Salto

$
0
0
A colleague noticed this code yesterday, which is the Java equivalent of jumping a double salto, then falling back at the same place from where you started:
  private List allHosts;  public void myMethod(Host theHost) {    Host myHost = allHosts.get(allHosts.indexOf(theHost));    ...  }


Viewing all articles
Browse latest Browse all 73

Trending Articles