Can we create primitive arrays like byte array or int array using javax.script?
2 Answers
If you are using the JavaScript engine of the package, use
var array = new Array();
array[0] = 1;
I'd recommend a reading through
1 Comment
Meera Menon
Basically, it needs to be an array of 1024 bytes size. In Java, it used to be byte[] bytes = new byte[1024]; But in javax.script with javascript, I can not find a way to do this.