View Full Version : Anyone with a spare java class file(s) with nested classes?

04-29-2009, 06:21 PM
I'm trying to avoid installing the JDK if possible (I have a really old version of Java that doesn't allow nested classes). I just need one or two class files containing nested classes for a little experiment I'm doing.


Just wanted to reiterate that I need compiled .class (not source code) files.

04-29-2009, 07:08 PM
Sure, here's a compressed & compact suffix trie that I just created (for uni).

I cheated, it's built in O(N^2) time not O(N) time. The class range is just a simple class consisting of a "to" and "from" index, and the class Node is of course, a node in the suffix trie (with a linked list of children).

Note that the usage is `java Question2 <text to build suffix trie from>`, There are probably a few bugs but it mostly works ;)

The attachment is a *.zip, so rename to from *.pdf

04-29-2009, 07:37 PM
Cool, thank you very much.

04-29-2009, 07:47 PM
I'm a little confused. Is SuffixTrie really an inner class? And if so, of what - the Question2 class?

04-29-2009, 07:57 PM
Never mind, I think I get how it works now. Thanks again!

04-29-2009, 08:02 PM
What is your experiment BTW?

Perhaps it's interesting? :)

04-29-2009, 08:33 PM
I'm just trying to understand how Java works, so decided to write a decompiler. :)