INF1B: Week 4: Java API
Week Highlights
By the end of this week, you should understand:
From lecture 7:
- what the main benefits of an API are
- How packages can be used to organise code
- Some examples of classes you would find in java.lang and java.util
- How to import packages and refer to packages you haven’t imported
- How to create your own package
Lecture 7: Java API and Documentation
- Slides: Lecture 7: Java API
Lecture 7 ➡ Java Tutorial: read Chapter 8. Packages and Chapter 9. Numbers and Strings.
Lecture 7 ➡ Objects First: read Appendix I: Javadoc and Appendix J: Program Style Guide.
Pathways through Uni Workshop
- Slides: Pathways through uni
Tutorial: Debugging
Instructions and materials:
Solutions:
Lab exercises
This week's lab exercises cover functions, standard input/output (STD I/O) and error handling, character manipulation, and recursion. There are two warmup exercises, six core exercises, and one optional exercise.
What should I be doing with assessment?
You should be continuing with Assignment 1.
License
Creative Commons - Attribution Share A Like