Presentation is loading. Please wait.

Presentation is loading. Please wait.

SE-1021 Software Engineering II

Similar presentations


Presentation on theme: "SE-1021 Software Engineering II"— Presentation transcript:

1 SE-1021 Software Engineering II
6/2/2019 SE-1021 Software Engineering II Week 9, Class 1 ByteBuffer Tomorrow Get quizzes back from last week… Wednesday Quiz at start of lab Dr. Yoder

2 Quiz 8, Question 5 “Because one uses the other and neither extends the other, nor does either implement the other” “JLabel is using ImageIcon, though they are both separate classes in and of themselves” “JLabel is gaining more of ImageIcon’s functionality but is using it as a component” SE-2811 Dr. Mark L. Hornick

3 Aggregation vs Composition
Uncolored on UML Does not need aggregates to exist May not be composition Colored on UML Created from its components Certainly is aggregation (Contained in the diagram here) Aggregation Composition SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

4 Slide style: Dr. Hornick
Syntax for try-catch try { } catch (/*…*/) { } --- OR --- } finally { SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

5 Slide style: Dr. Hornick
Syntax for try-catch try (TYPE NAME = new SOMETHING) { } catch (/*…*/) { /*…*/ } finally { } SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

6 Slide style: Dr. Hornick
Possible Programs SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

7 Slide style: Dr. Hornick
Treasure Hunt Image shows on screen Click various places When you click, the thing you clicked “does something” Scurry off Play an animated movie Move to another position on the screen SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick

8 Slide style: Dr. Hornick
From Last Time SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

9 Slide style: Dr. Hornick
Useful Point Scanners can separate on more than just whitespace: A method of scanner: Scanner useDelimiter(String pattern) Now, whatever is being scanned will be split along “pattern” SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick

10 Slide style: Dr. Hornick
Exercise: We would like to store treasures as treasure.png,100,340, treasure.png,234,678, treasure.png,100,340, Write code to create new treasures from this file. SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick


Download ppt "SE-1021 Software Engineering II"

Similar presentations


Ads by Google