Skip to content

Instantly share code, notes, and snippets.

@pfalabella
Last active December 14, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfalabella/5156005 to your computer and use it in GitHub Desktop.
Save pfalabella/5156005 to your computer and use it in GitHub Desktop.
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