This repository acts as a personal archive for my solutions to EdX course *Data Structures and Software Design* from PennX.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
238 B

  1. public class Node {
  2. protected String element;
  3. public Node(String element) {
  4. this.element = element;
  5. }
  6. public String getElement() {
  7. return element;
  8. }
  9. public String toString() {
  10. return element;
  11. }
  12. }