File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes help in starting a program.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "help in starting a program.." Watch "help in starting a program.." New topic

help in starting a program..

johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
i got this big project to build
a program that complesses and uncompresses (using a binary tree)
a text file(which consists only of lowercase letters and the space char)
by the

i understood the LZ78 method

but my problem that i dont know what methods
classes to build
in order to make it work

i can build the whole class for binary tree
or for a single node
can you help me in concentrating
on what types of classes and method do i need to build
in order to make it work
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
i tried to compose a list of method and classes
but i am not sure its enough

Public static String coder(String str)

The method returns the value given string in a coded form.

Public static boolean check_if_exist(String str)

The method checks if the word exists previously

Public static void index_builder(Tree index_list );

Public static String decoder(String str)

The method returns the data in an uncoded form








Node insert

Node remove
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29275

That's a good list to start with. You may find you need other methods after starting. It's hard to come up with a complete list up front.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
johny doe
Ranch Hand

Joined: Dec 07, 2007
Posts: 78
i know
but my problem is
that i need to think of planning the program

my first homework is to show the list of classes and methods

i tried to do that
as i showed priosly
i just didnt wright this code befoure
and i dont know how to build this lz78 code
nor how to use binary tree to build it
I agree. Here's the link:
subject: help in starting a program..
Similar Threads
help in understanding LZ78 compressing method
LZ78 and FileReader
How to write a spell checker?
tree datastructure algorithm
BST problem (Online waiting)