private void clearCallbacks(Callback[] callbacks){
  for (int i=0; i < callbacks.length; i++) {
    if (callbacks[i] instanceof NameCallback) {
      NameCallback nc=(NameCallback)callbacks[i];
      nc.setName("");
    }
  }
}

private void clearCallbacks ( Callback [ ] callbacks ) { for ( int i = 0 ; i < callbacks . length ; i ++ ) { if ( callbacks [ i ] instanceof NameCallback ) { NameCallback nc = ( NameCallback ) callbacks [ i ] ; nc . setName ( "" ) ; } } }
user input value will be store in the callbacks [ ] . when user click cancel button , these input field should be reset to blank .
