Recent content by Live4eva_2
-
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...- Live4eva_2
- Thread
- Java
- Replies: 1
- Forum: Programming and Computer Science
-
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> {...- Live4eva_2
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
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...- Live4eva_2
- Thread
- Java Tips
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
L
Comp Sci How do I construct nodes with values in a generic Java LinkedList?
Yay!I do...Marked as solved!- Live4eva_2
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
L
Comp Sci How do I construct nodes with values in a generic Java LinkedList?
I think I just might get it now...- Live4eva_2
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
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...- Live4eva_2
- Thread
- Class Java
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
L
Comp Sci Java:Constructors within constructors
okay don't worry I got somebody helping me on another site- Live4eva_2
- Post #9
- Forum: Engineering and Comp Sci Homework Help
-
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...- Live4eva_2
- Post #8
- Forum: Engineering and Comp Sci Homework Help
-
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!- Live4eva_2
- Post #6
- Forum: Engineering and Comp Sci Homework Help
-
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...- Live4eva_2
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
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)- Live4eva_2
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
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...- Live4eva_2
- Thread
- Replies: 8
- Forum: Engineering and Comp Sci Homework Help
-
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--->dependent 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...- Live4eva_2
- Post #7
- Forum: Calculus and Beyond Homework Help
-
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?- Live4eva_2
- Post #5
- Forum: Calculus and Beyond Homework Help
-
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...- Live4eva_2
- Post #3
- Forum: Calculus and Beyond Homework Help