No I haven't. I undertand the logic behind it but always have trouble putting it correctly into code.
Type: Posts; User: userct
No I haven't. I undertand the logic behind it but always have trouble putting it correctly into code.
With that binary search method how do I get it to run the dvds through it?
As it is structured now it uses Comparable [] list. Do I need to somehow put the DVDs in that list or put DVDCollection in...
Since I only Need it for this one and have to modify the current code I actually should probaby put it in one of the current classes. Thank you.
I looked at some code and made a structure below. I'm not on my programming computer so I just wrote and examined binary search. I believe this should work. I was wondering if I can call this in my...
I've looked briefly. I'm looking at it more now, thank you.
I actually was told today that I have to use Binary Search in order to sort the strings.
I'm not sure if it sorts how I want it because I'm not sure exactly how to incorporate it in my code.
Sorry if anything I say sounds incorrect, I'm relatively new to this.
I'm not too familiar with sorting algorithms as we were just taught it and this was sprung on us. I don't want to go into the programming field but this class is required. I'm not sure how or what...
I need to modify this movies program so that way the DVDs will be sorted by title at all times (A first thru Z). The performance of the code will be scrutinized, so I need to produce the best...
I need to modify this movies program so that way the DVDs will be sorted by title at all times (A first thru Z). The performance of the code will be scrutinized, so I need to produce the best...
I know I'm probably calling the array wrong but would this method help me to sort:
I never told it to sort the String "title" so I must have to call that.
public static void sort(DVD []...
Thank you for your responses.
This is what it prints right now without any alterations. It is unsorted and basically all over the place.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My DVD...
Hello, I need to modify this movies program so that way the DVDs will be sorted by title at all times. I've gone over several algorithms like bubble sort and binary sort, but I am wondering which...
Thank you all for your assistance.
Thank you, I was assuming that declaring it boolean would cause anything inside the method to be boolean and that would mess me up.
In the requirements above the program it says:
• isHeavy that returns true when packet is above 10 pounds, and false otherwise.
• isLight that returns true when packet is below 5 pounds, and...
isLight and isHeavy are required methods and need to be named that way.
I didn't think of it like that but that's a great idea to have it return true if say, for isHeavy, weight > 10.
I just have...
I believe I commented wrong.
What I want to do is assign data to that arrayList and then take it out.
For example, in my isHeavy method I need to "get the weight" from the arrayList and then if...
Okay thank you. So I'll try to reference ArrayList by using say, getWeight rather than going through that while loop although that loop will still help to read the input file.
Thank you for your comments so far, I've been away the past couple days and haven't been able to log in to reply to anything.
I realized that I declared "shipment" as an array when the instructions...
I'm using BlueJ as my editor. It does not allow me to copy and paste the error message.
For one the program doesn't compile completely if that isn't obvious already but here are some errors it shows.
When I compile class packet it says referring to shipment[count] = new...
I'm relatively new to programming although I have one year of experience and can do basic code. I was given an assignment to work on by someone I work with that they had when they were in college and...
Just saying hello to everyone.
I/m here to hopefully get some insight on java programming and become more advanced and to help people if I can.
Have a good day.