Javascript Array toJava()

Description

Javascript Array toJava()

Array.prototype.toJava = function() {
  var l = this.length;
  var a = new java.util.ArrayList();
  for (var i = 0;i < l;i++)
    a.add(this[i]);//  w w  w . j  a va 2  s.c o  m
  return a;
};



PreviousNext

Related