Created
April 14, 2019 23:29
-
-
Save luisenriquecorona/4994f29809f32a6e372585edddad30c0 to your computer and use it in GitHub Desktop.
This program exhibits some bugs, so we can use a debugger
This file contains hidden or 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
/** This program exhibits some bugs, so we can use a debugger */ | |
public class Buggy { | |
static String name; | |
public static void main(String[] args) { | |
int n = name.length( ); // bug # 1 | |
System.out.println(n); | |
name += "; The end."; // bug #2 | |
System.out.println(name); // #3 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment