Please can someone tell me how to write data to smart card using java card?with example
can some one tell me how to write data in smart card using java card?
i have this code
i am using java card 2.2


  private void writeName(APDU apdu) throws ISOException
	    { 
	      apdu.setIncomingAndReceive();
	      byte[] apduBuffer = apdu.getBuffer();
	      
	      byte j = (byte)apduBuffer[4];
	      
	      userName = new byte[j];
	      for (byte i=0; i<j; i++)
	      {
	        userName[(byte)i] = (byte)apduBuffer[5+i];
	        
	      }
Please can someone tell me how to write data to smart card using java card?with example
===

can some one tell me how to write data in smart card using java card?
i have this code
i am using java card 2.2


  private void writeName(APDU apdu) throws ISOException
	    { 
	      apdu.setIncomingAndReceive();
	      byte[] apduBuffer = apdu.getBuffer();
	      
	      byte j = (byte)apduBuffer[4];
	      
	      userName = new byte[j];
	      for (byte i=0; i<j; i++)
	      {
	        userName[(byte)i] = (byte)apduBuffer[5+i];
	        
	      }