Anyone with a spare java class file(s) with nested classes?

This is a discussion on Anyone with a spare java class file(s) with nested classes? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm trying to avoid installing the JDK if possible (I have a really old version of Java that doesn't allow ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600

    Anyone with a spare java class file(s) with nested classes?

    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?

    [edit]
    Just wanted to reiterate that I need compiled .class (not source code) files.
    [/edit]
    Last edited by Sebastiani; 04-29-2009 at 06:28 PM.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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
    Attached Images Attached Images
    Last edited by zacs7; 04-29-2009 at 07:13 PM.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    Cool, thank you very much.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    I'm a little confused. Is SuffixTrie really an inner class? And if so, of what - the Question2 class?
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    Never mind, I think I get how it works now. Thanks again!
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    What is your experiment BTW?

    Perhaps it's interesting?

  7. #7
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    I'm just trying to understand how Java works, so decided to write a decompiler.
    Attached Images Attached Images  
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 04:01 PM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 06:12 PM
  4. abstract class
    By xddxogm3 in forum C++ Programming
    Replies: 5
    Last Post: 01-01-2005, 08:08 AM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21