#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0

    Writing an alphebetize method for a custom linked list class


    I've been working on making my own linkedList class. I'm supposed to write a method that will sort a linked list into alphabetical order (0-9-a-z). However, i cant use the collections.sort method nor can I create any new lists in the process. I've been banging my head on the wall for a bit about this one. any ideas?
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jan 2004
    Location
    Mobile, Alabama
    Posts
    4,020
    Rep Power
    1285
    Originally Posted by pacgcrosss
    I've been working on making my own linkedList class. I'm supposed to write a method that will sort a linked list into alphabetical order (0-9-a-z). However, i cant use the collections.sort method nor can I create any new lists in the process. I've been banging my head on the wall for a bit about this one. any ideas?
    When you implement the insert method in the Linked List, make sure that it inserts in order.

IMN logo majestic logo threadwatch logo seochat tools logo