Recent content by Live4eva_2

  1. L

    Java Java: Check LinkedList<T> Classes

    Could someone check the following 3 classes for me please? public class LinkedList<T> { public Node<T> first; public Node<T> last; protected class Node<T> { public Node<T> next; public Node<T> last; } public class Iterator<T> { protected...
  2. L

    Comp Sci Creating a DoublyLinkedList Iterator in Java: Tips and Tricks

    OK nevermind that..Let me pose another question: public class LinkedList<T> { public Node<T> first; public Node<T> last; protected class Node<T> { public Node<T> next; public Node<T> last; } public class Iterator<T> {...
  3. L

    Comp Sci Creating a DoublyLinkedList Iterator in Java: Tips and Tricks

    Hi I'm struggling to create a DoublyLinkedList<T> class in Java. Well,it's actually the iterator that's freaking me out.. Most tutorials and documents I've read use three classes for this:Node<T>,DoublyLinkedList<T> and LinkedListIterator<T>. I can see the point in creating Node and...
  4. L

    Comp Sci How do I construct nodes with values in a generic Java LinkedList?

    [SOLVED] Java LinkedListNode class Hi.. I'm trying to understand a generic linked list...in Java. I understand that I should have a LinkedList class containing a Node class. The Node class should have an info variable and a link variable.These variables should be accesessed through the...
  5. L

    Comp Sci Java:Constructors within constructors

    okay don't worry I got somebody helping me on another site
  6. L

    Comp Sci Java:Constructors within constructors

    oh..This is confusing.I'm doing this exercise for practice.It's out of DS Malik's Java Programming with data structures book.The question asks me to create those 4 classes.It didn't say that I must extend any classes though.The only other way I can think of is to use the clone() method...would...
  7. L

    Comp Sci Java:Constructors within constructors

    OK! that seemed to work. Just need to find out why my address object is printing nulls... thanx guys!
  8. L

    Comp Sci Java:Constructors within constructors

    My constructors are defined..I am just creating instances of the Person,Date and Address classes. Person has these instance variables:String firstName,String lastName Date has these instance variables:int day,int month,int year Address has these:String city,String country,String...
  9. L

    Comp Sci Java:Constructors within constructors

    Oh ya...I would have posted this in a programming forum but my usual haunt is offline for some reason.Besides,I am a Comp_Sci student...(relatively LOL)
  10. L

    Comp Sci Java:Constructors within constructors

    Hi, I have 4 classes:Person,Date,Address,AddressBook. I want to create an array of address book objects.(ive never created an object array though). What I have done is created Person,Date and Address classes.Lastly,my Address class has a default constructor that looks something like...
  11. L

    How can I simplify boolean expressions using K-maps and truth tables?

    from the column headings: binary 100 -------This is my lone minterm. (ABC--->dependant on all inputs) binary 110 ------ binary 111 ------These constitute my group of 2^1 minterms.(As you say,one input will be redundant.) So...when all inputs are 1...I get a 1 for output...
  12. L

    How can I simplify boolean expressions using K-maps and truth tables?

    ah...this is the bit I don't understand.What is the method for writing out the expression once I have grouped everything??Could you explain?
  13. L

    How can I simplify boolean expressions using K-maps and truth tables?

    OK I marked the other thread as solved. I managed to get a bit further with the K-maps. Have a look at this .jpg. I have managed to figure out the ordering of the minterms and the values of the truth table.The function in question is just an arbitrary one I made up so I'm not sure if that's...
Back
Top