Created
May 1, 2019 14:38
-
-
Save deepaksinghvi/b27349c85c6037b5d89205937bfb3307 to your computer and use it in GitHub Desktop.
Deque.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: Deepak Singhvi | |
*/ | |
class Deque { | |
private Integer data; | |
Deque next; | |
Deque prev; | |
public Integer getData() { | |
return data; | |
} | |
public void setData(Integer data) { | |
this.data = data; | |
} | |
public Deque getNext() { | |
return next; | |
} | |
public void setNext(Deque next) { | |
this.next = next; | |
} | |
public Deque getPrev() { | |
return prev; | |
} | |
public void setPrev(Deque prev) { | |
this.prev = prev; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment