java - Store a String data into my JavaCard -


i need know how store string data in javacard, please ? p.s : javacard not support string type.

java card 3 small primitive data types (boolean, byte, short)
has optional support integer (int) primitive data type.

strings can represented array of characters or bytes.
characters not supported(as know).

hence can represent using array of bytes:

byte str[]; //creating array of byte str = {'s' , 't' , 'a' , 'c' , 'k'}; // initializing array 

my answer same above little more explanation.
hope helps.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -