This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Tough time w/ class program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Tough time w/ class program" Watch "Tough time w/ class program" New topic
Author

Tough time w/ class program

John Scuro
Greenhorn

Joined: Nov 24, 2007
Posts: 1
Hello all ~ I am in need of some assistance with a class program. The problem is that I do not know where the problem exists. I have implemented a comparable interface and have set some fields as to the program requirements. I was given code to a class called Sorting, that will sort any item that implements my comparable interface; I believe the most practical way for me to receive some assistance is through e-mail. I can send the program and the program requirements --in hopes of receiving some explanation to what the problem might be. I could post code, but it is rather lengthy and like I said: I not sure where the problems exist.

Any help would be greatly appriciated!!!

--I just want to get this thing working properly and "understand" where my mistakes have been.

Thanks for your time
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18538
    
  40

http://faq.javaranch.com/java/UseTheForumNotEmail


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
[John Scuro:]   I am in need of some assistance with a class program. The problem is that I do not know where the problem exists. I have implemented a comparable interface and have set some fields as to the program requirements.

What problem ?

[John Scuro:]   I was given code to a class called Sorting, that will sort any item that implements my comparable interface. I could post code, but it is rather lengthy and like I said: I not sure where the problems exist.

Post the code, be SURE to use the code tags. I have tested the waters, it is your thread of discussion and the ONLY time I have ever seen anybody say anything about an overly large code post was when someone pasted several hundred lines of what amounted to the entire dataset and could have been inferred from the first and last ten lines. Don't post the code that you were given: post the code that you try to write.

[John Scuro:]   ...fields as to the program requirements.

What fields, what requirements ?

I just want to get this thing working properly and "understand" where my mistakes have been.

Okay, but we don't do homework.


"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by John Scuro:
... The problem is that I do not know where the problem exists...

Welcome to JavaRanch!

How do you know there is a problem? What are the error messages? What is it failing to do? Or what is it doing that it shouldn't be?

My guess is that there might be a problem in the way you implemented Comparable. If that's the case, maybe that's the only code we need to see. (As Nicholas suggested, please use Code Tags when posting code.)
[ November 25, 2007: Message edited by: marc weber ]

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tough time w/ class program
 
Similar Threads
Code in database corrupts data.
prompting for more input
Need help finding assignments
Generics, multiple bounding types and efficiency
Comparing Comparable