package datastructures.lab1;

public class HolderString implements LinkedListString{

   private Node head;

   public HolderString(){
      //empty
   }

   /**
     * appends s to the end of the LinkedListString
     */
    public void append(LinkedListString s){
       //to do
    }

    /**
     * appends c to the end of the LinkedListString.
     */
    public void append(char c){
       //to do
    }

    /**
     * 	deletes the i-th character in the LinkedListString.  
     *  Throws an exception if i is an invaild index.
     */
    public void delete(int i){
       //to do
    }

    /**
     * returns the index of the first (leftmost) occurance of character c
     * Returns -1 if c does not appear
     */
    public int find(char c){
       //to do
    	 return -1;
    }

    /**
     * if s is a substring of the LinkedListString, returns the index 
     * of the first character of the occurance of that substring.  
     * Otherwise returns -1.
     */
    public int indexOf(LinkedListString s){
       //to do
       return -1;
    }

    /**
     * returns the length of the LinkedListString
     */
    public int length(){
       //to do
       return -1;
    }

    /**
     * returns the substring of the LinkedListString, starting at index start, 
     * and extending for length characters.  For example, calling 
     * substring(3,5) on a LinkedListString containing the characters 
     * "telephone" returns a LinkedListString containing the characters 
     * "ephon".  
     *
     * If length is less than zero, this method returns
     * either null or an empty string.  If length extends beyond the
     * end of the string, the method returns the string starting at start.
     * For example, substring(3,100) on "telephone" returns "ephone".
     */
    public LinkedListString substring(int start, int length){
       //to do
       return null;
    }

    /**
     * prints the string to standard input
     */
    public void print(){
       //to do
    }


    /**
     * returns the character located at the zero-based index
     */
    public char charAt(int i){
       //to do
       return '\u0000';
    }

    /**
     * return true if this and the passed LinkedListString
     * represent the same string
     */
    public boolean equals(LinkedListString lls){
       //to do
       return false;
    }

  public static void main(String[] args){
	System.out.println("I am testing HolderLinkedListString");
  }



}

