Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by AdRock952

  1. AdRock952

    HTML email is sent as text

    I have been working on a newsletter system for a site i'm finishing and everything is working fine apart from when i'm trying to send html/plain text email I found an article on this site http://www.tek-tips.com/faqs.cfm?fid=2681 I created my own function that gets post data from a form and...
  2. AdRock952

    Linked list using Sorted Set

    I tried doing what you said and it compiled. Would doing this affect the program because it's not using E?
  3. AdRock952

    Linked list using Sorted Set

    It needs to be generic so everthing Object is replaced with E
  4. AdRock952

    Linked list using Sorted Set

    OK...here si the code for the Node class import java.util.*; public class Node<E> implements Comparable<E>{ Node<E> next; // Refers to next item in the list. Node<E> previous; // Refers to the previous item. *** E cargo; // The item for this...
  5. AdRock952

    Linked list using Sorted Set

    That is the whole error message I get when trying to compile
  6. AdRock952

    Linked list using Sorted Set

    I posted the error above the code
  7. AdRock952

    Linked list using Sorted Set

    I think i have worked that out but it may need checking to see if I have it right but i get this error when compiling import java.util.*; public class OrderedLinkedList<E> extends AbstractSet<E> implements SortedSet<E> { private Node<E> start; private Node<E> end; private...
  8. AdRock952

    Linked list using Sorted Set

    I have got quite a bit further with this but i am stuck on what to return for the subSet(), headSet() and tailSet() I looked at the java site and it said to return SortedSet and other code but i don't know what in my code is to be returned. Here is my code now import java.util.*; public...
  9. AdRock952

    invalid method declaration; return type required

    I am trying to create a linked list which is sorted using the predifined methods for the interface but using my own code to rewrite the mehtods. I have come across a problem and so far i have 1 error when compliling the line it is pointing to is this public compare(E o1, E o2) { here is the...
  10. AdRock952

    Linked list using Sorted Set

    I am trying to create a linked list that uses the Sorted Set interface but am unclear about what needs to go in certain methods. I am creating the class and I'll have the app that inserts the data seperate. What i need is to create the class that uses all the methods that are on the Java...
  11. AdRock952

    Java validation help needed

    I couldn't find code tags anywhere on the page otherwise I would have done that Underneath the validation I have this <b>while (packageWeight != 0) { more code }</b> which goes to the next part of the code if what is entered is any number but zero. Unfortunately negative numbers are still...
  12. AdRock952

    Java validation help needed

    I have some validation that checks for numerical input and displays an error message if anything else is entered. What I want is, if the user enters a negative number, an error message is displayed also and asks again for input until they enter a positive number. Everything I try lets the user...
  13. AdRock952

    Hot to do /index.php?page=news

    I am trying to cut down the size of my website and know that I can use the index page as the layout and have content change for each page using the same layout (like using one page but changing the content). What I am trying to achieve is something like http://www.sample.com/index.php?page=news...
  14. AdRock952

    Problem with XP shutting down

    Hello again. My computer was running fine and then blu screened and restarted. It now will only boot into safe mode even though i selected last known good configuration. Is there any way I can restore my desktop back the way it was without having to reinstall windows?
  15. AdRock952

    Problem with XP shutting down

    I have sorted my problem out thanks. I changed a few PCI cards around as there were no yellow symbols. Had one major system restart earlier but it's staying on now with no problems. I moved an exhaust and i think that's what was causing the problems but it's all sorted now Anyway thanks for...

Part and Inventory Search

Back
Top