Download presentation
Presentation is loading. Please wait.
Published byAlvin Wilkinson Modified over 6 years ago
1
COMPUTER 2430 Object Oriented Programming and Data Structures I
2
Friday, September 28 Review Notes!
Quiz 2 Friday, September 28 Review Notes!
3
Nadine Gadjou Lab 206 3:00 – 5:00 PM Monday - Thursday
Lab Assistant Nadine Gadjou Lab 206 3:00 – 5:00 PM Monday - Thursday
4
Pals For CS 1130, CS 1430, and CS 2430 6:00 – 9:00 pm, Monday – Thursday Lab 009, Two rows at the back (front rows for ACM, AITP and GDC)
5
Lab 3 Make sure your Prog1 is working
Make a copy of your Prog1 project UserName_Lab3 Open UserName_Lab3 in NetBeabs
6
Debugging in NetBeans Setting Break Points Debug
Click the left column on the line (Prog1.java) theList.print(); A colored square Debug Right click Prog1.java Debug file
7
Debugging Windows Variables Breakpoints Output sc theList MAX_SIZE
scores numScores Breakpoints Output
8
Debugging Step Over Step Into Step Out Checking the values Continue
Pause Finish Debugging Session Stop
9
Debugging Commands “step over” and “step into” are the same on a line without a function call Is it possible to have multiple debugging sessions running at the same time? If so, is it a good idea to have multiple debugging sessions running at the same time?
10
Import Format Setting Instruction NetBeans.txt Menu Tools Options
K:\Academic\CSSE\Software\NetBeans_8.1_JDK_8u91 Menu Tools Options Import CS2430Settings.zip
11
Testing Java Programs TestBed main JUnit tests System test
12
Testbed Main Inside the same class
Testing all methods of a class, including private methods Specify input and verify output Need programming skills
13
Junit Tests A separate class
Testing individual public methods of a class Verify expected result against actual result assertEquals assertNotEquals set precision for float/double values No input and output Need programming skills
14
Lab 3
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.