Forums Register Login

Object c = new long[4];

+Pie Number of slices to send: Send
What is this line of code doing:



Why are the square brackets used "[]" ?
1
+Pie Number of slices to send: Send
You are creating a new array of long, with length 4, and assigning it to an Object variable. Recall that arrays are objects too.

You know about arrays, right?
+Pie Number of slices to send: Send
Thanks Stephan.

I had studied too much yesterday. That line of code made no sense to me. All is clear after a good nights sleep. Thanks again. :-)
+Pie Number of slices to send: Send
We all have moments like that. Happy to help
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 765 times.
Similar Threads
Object and array ref
Boxong with Widening
Question on Self Test of K &b Chapter 3
array
arrays
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:18:27.