Table of Contents

Introduction

Not that we like Microsofts alternative, but JAVA SUCKS. Heres a page dedicated to the comments of those who REALLY hate java…

Rob Park

BufferedReader foo = new BufferedReader(new InputStream(new JavaHatesYou(new FuckOffAndDie(new ForTheLoveOfGodLetMeJustReadTheFile(new File("filename.txt")))))))));

Matthew Burgess

Here's a code snippet which while not being as humourous or as succinct as Rob's is frustrating none the less - accessing elements of a Vector is not exactly intuitive (well for me coming from a C++ background anyway).

import java.util.Vector;

myVectorWithIntegersInIt = new Vector();


//populate the Vector with Integers
for (int i = 0; i < 10; i++) {
    myVectorWithIntegersInIt.add(new Integer(i));
}

//now get the values back - notice I put Integers in the Vector, but have to
//explicitly cast the now generic Objects back to Integers...yet another
//good reason for having templatized classes/functions as per C++

for (int i = 0; i < 10; i++) {
    System.out.println((Integer) myVectorWithIntegersInIt.get(i));
}