Search:

Type: Posts; User: userct

Search: Search took 0.23 seconds.

  1. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    No I haven't. I undertand the logic behind it but always have trouble putting it correctly into code.
  2. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    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...
  3. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    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.
  4. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    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...
  5. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    I've looked briefly. I'm looking at it more now, thank you.
  6. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    I actually was told today that I have to use Binary Search in order to sort the strings.
  7. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting 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.
  8. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Re: Sorting Strings

    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...
  9. Thread: Sorting Strings

    by userct
    Replies
    17
    Views
    1,544

    [SOLVED] Sorting Strings

    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...
  10. Replies
    0
    Views
    611

    [SOLVED] Sorting strings alphabetically

    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...
  11. Replies
    4
    Views
    763

    [SOLVED] Re: What Algorithm Would Work Best for me?

    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 []...
  12. Replies
    4
    Views
    763

    [SOLVED] Re: What Algorithm Would Work Best for me?

    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...
  13. Replies
    4
    Views
    763

    [SOLVED] What Algorithm Would Work Best for me?

    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...
  14. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    Thank you all for your assistance.
  15. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    Thank you, I was assuming that declaring it boolean would cause anything inside the method to be boolean and that would mess me up.
  16. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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...
  17. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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...
  18. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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...
  19. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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.
  20. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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...
  21. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    I'm using BlueJ as my editor. It does not allow me to copy and paste the error message.
  22. Replies
    17
    Views
    1,410

    [SOLVED] Re: Having Issues Wish this Program

    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...
  23. Replies
    17
    Views
    1,410

    [SOLVED] Having Issues Wish this Program

    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...
  24. Thread: Hello

    by userct
    Replies
    1
    Views
    162

    Hello

    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.
Results 1 to 24 of 24