Advanced Placement Computer Science A focusing on Java programming and object-oriented design.
Even expert programmers make mistakes! Debugging means finding and correcting errors in your code. Test your programs often, try different inputs, and use print statements to track what your code is doing. Don't be afraid to ask for help or use online resources when stuck.
System.out.println()
to check values.Debugging is a skill you'll use on every project and every exam!
Using print statements to find out where a loop stops working.
Testing a method with zero, positive, and negative numbers to ensure it works in all situations.