I hope u unserstood the first line.. it would return a random number from 0 - 4. In the second line => new String[] { "a","b","c","d","e" }, is nothing but a string array it is equivalent to declaring an array and assinging it. String[] arrayStrings = new String[] { "a","b","c","d","e" }; String name = arrayStrings[x];//this would assing the element corresponding to the random index..
Originally posted by Jeroen Wenting: and you think you can pass the SCJP exam? you don't even comprehend basic programming concepts like arrays...
Are you here to make insults of people ... why you are here ... you don't make any question ... You don't answer any question ( oh sorry , that require mind , so its just impossible for you ) ... I am sure out of your 3000 message 2900 are waste .... actually you are whole waste .... I am dam sure that you are very inferior , failure kind of person .... no body is happy with you ( even your wife ( if she is living with you till now ...) )
s.. its an anonymous array.. i am not sure if u can not initialize an array with String[] s = new String[]{"a",..}.. it could be possible..plz check it by writing a small program..
yaa jagadeesh , what happened to us .... its an anonymous array object so definately it is refered by a array reference .... it is valid ... thanks a lot ....
Post by:autobot
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
a bit of art, as a gift, the permaculture playing cards