Question: Need help makng CarDataNode class. My code so far is given below... *CarDataNode specifications (also UML) *CarDataNode is a doubly linked list node *It must
Need help makng CarDataNode class. My code so far is given below...
*CarDataNode specifications (also UML)

*CarDataNode is a doubly linked list node
*It must implement addNodeAfter and toString in a fashion similar to the Books ADT/Class Demo Code
i.removeNode removes the calling node from the list!
*checkIn is used to set the Date checkIn to the current time
*checkOut is used to set the Date checkOut to the current time
*equals is only concerned with checking if the license plates between two nodes are the same
*Two static methods are specified
i.Finding a node with a given license plate takes two arguments, a node to start searching at and the string
ii.Getting a node with a given index takes two arguments, a node to start searching at and the index of the node to return
*Should be serializable!
import java.util.Date;
-------------------------------------------------------------------------------------------------------------------------------------------------------
My code so far...
public class CarDataNode {
private long serialVersionUID;
private String licensePlateNumber;
private Date checkIn;
private Date checkOut;
public CarDataNode(String cdn){
}
public String getLPN(){
}
public CarDatNode getNext(){
}
public void checkIn(){
}
public void checkOut(){
}
public Date getCheckIn(){
}
public Date getCheckOut(){
}
public void addNodeAfter(CarDataNode addCar){
}
public void removeNodeAfter(CarDataNode reCar){
}
public boolean equals(CarDataNode eqCar){
}
}
dum pout -head 0..1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
