Skip to main content
Dat 3. semester
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

04 Data Integration

Topics covered in this week are:

  1. Java Executor Service
  2. Java Futures and Callables
  3. Json
  4. DTO
  5. Fetching data from an API

Monday

Online review on the Friday assignment:

  • What did you solve?
  • Show your code an run it in IntelliJ
  • Think about what you could have done differently
  • What did you learn?
  • Questions for the review team

For the rest of the day: Prepare for the week. Watch the videos and read the articles.

Tuesday (class)

Prepare for the class

Watch this video:

Skim through these inhouse articles:

  1. What is an URI?
  2. What is JSON?
  3. What is a DTO?
  4. JSON and DTO conversions
  5. What is a REST API?
  6. What is Jackson?
  7. Fetching json from an API

In-class exercises

  1. Activity Logger Exercise

Extras (if you want to practice more):

  1. DTO Exercise
  2. JSON Exercise

Wednesday (CodeLab)

Time to code!

Thursday (class)

Prepare for the class

Watch these videos:

Read this tutorial:

These in-house articles are great for todays class:

In-class exercises

Slides

Friday (exercise day)

  • For the Friday exercise, you will be working on your portfolio project. You should use the knowledge you have gained this week to fetch data from an API and integrate it into your project. You can choose any API you like, but make sure it is relevant to your project and that you can fetch data from it using Java.
  • You should also use the Java Executor Service to fetch data from the API in a separate thread, so that your application remains responsive while waiting for the data to be fetched.
  • Make sure to document your code and reflect on the problems you solved and the choices you made in your weekly log. This will help you prepare for the Monday review, where you will present your work and discuss it with your peers and instructor.