I did not understand the following line of code below:
ret += this.elem[i]+(i!=this.ultimo?", ":"");
What is the meaning of these operators i!
, ?
and :
{
String ret = "{";
for (int i=0; i<=this.ultimo; i++)
ret += this.elem[i]+(i!=this.ultimo?", ":"");
return ret+"}";
}