code: public static final boolean prefixEquals(char[] prefix, char[] name,
  			boolean isCaseSensitive)
  	{
  
  		int max = prefix.length;
  		if (name.length < max)
  		{
  			return false;
  		}
  		if (isCaseSensitive)
  		{
  			for (int i = max; --i >= 0;)
  			{
  				// assumes the prefix is not larger than the name
  				if (prefix[i] != name[i])
  				{
  					return false;
  				}
  			}
  			return true;
  		}
  
  		for (int i = max; --i >= 0;)
  		{
  			// assumes the prefix is not larger than the name
  			if (Character.toLowerCase(prefix[i]) != Character.toLowerCase(name[i]))
  			{
  				return false;
  			}
  		}
  		return true;
  	}
docs: Answers true if the given name starts with the given prefix, false otherwise. isCaseSensitive is used to find out
  whether or not the comparison should be case sensitive. <br>
  <br>
  For example:
  <ol>
  <li>
  
  <pre>
  prefix = { 'a' , 'B' }
  name = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  isCaseSensitive = false
  result =&gt; true
  </pre>
  
  </li>
  <li>
  
  <pre>
  prefix = { 'a' , 'B' }
  name = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  isCaseSensitive = true
  result =&gt; false
  </pre>
  
  </li>
  </ol>
  
  @param prefix
  the given prefix
  @param name
  the given name
  @param isCaseSensitive
  to find out whether or not the comparison should be case sensitive
  @return true if the given name starts with the given prefix, false otherwise
  @throws NullPointerException
  if the given name is null or if the given prefix is null