public WebCookie(String name,String value){
  int length=name.length();
  for (int i=length - 1; i >= 0; i--) {
    char ch=name.charAt(i);
    if (ch >= 0x7f || !validChar[ch])     throw new IllegalArgumentException("illegal cookie name: " + name);
 else     if (ch == '$' && i == 0)     throw new IllegalArgumentException("cookie can't start with '$'");
  }
  this.name=name;
  this.value=value;
}

public WebCookie ( String name , String value ) { int length = name . length ( ) ; for ( int i = length - 1 ; i >= 0 ; i -- ) { char ch = name . charAt ( i ) ; if ( ch >= 0x7f || ! validChar [ ch ] ) throw new IllegalArgumentException ( "illegal cookie name: " + name ) ; else if ( ch == '$' && i == 0 ) throw new IllegalArgumentException ( "cookie can't start with '$'" ) ; } this . name = name ; this . value = value ; }
create a new cookie with the specified name and value .
