PDA

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



Sebastiani
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.

Anyone?


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

zacs7
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

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

Sebastiani
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?

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

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

Perhaps it's interesting? :)

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