Last active
December 14, 2015 22:08
-
-
Save pfalabella/5156005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double[] array = new double[5]; | |
for(int i=0;i<5;i++) | |
{ | |
array = new double[5]; // accidentally redefining array | |
double theAnswer=42D; | |
array[i]=theAnswer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment