You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think that the following line of code (which is the same as the line shown in section 1.6.2.2) will run, either by itself or in conjuction with "int[] numbers;" :
I think the aforemention line of code will fail to run on its own (because we will then be neglecting to declare numbers as an array of ints) or with "int[] numbers;" (I tried to do a similar thing and I recieved an "illegal start of expression" error).
However, from my tinkering, I believe that the following line of code will run:
I don't think that the following line of code (which is the same as the line shown in section 1.6.2.2) will run, either by itself or in conjuction with "int[] numbers;" :
numbers = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024};
I think the aforemention line of code will fail to run on its own (because we will then be neglecting to declare numbers as an array of ints) or with "int[] numbers;" (I tried to do a similar thing and I recieved an "illegal start of expression" error).
However, from my tinkering, I believe that the following line of code will run:
int[] numbers = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024};
It will be nice if my conjecture can be verified, with the course notes potentially changing to reflect that. Thanks!
The text was updated successfully, but these errors were encountered: