I'm used to javascript where if for exemple I call :
var tab1 = [0,1,2,3,4];
I can call tab1, and it returns my array content as :
[0,1,2,3,4]
I've noticed in java if I declare an integer array like so :
int tab1[] = {0,1,2,3};
If I want to print out my array the only way I tought of was doing a loop to print out
tab1[i];
If I call "tab1" alone, I get something like : "[I@15db9742", but why ? What is that piece of code, and why can't we just call variables as loosely ?