Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Learning Java by Example

via LinkedIn Learning

Overview

The best way to learn is to do: Learn Java by doing! Walk through four Java programming challenges with step-by-step solutions.

Syllabus

Introduction
  • Welcome
  • What you need to know
  • Using exercise files
1. Create a Command-Line Application That Searches Text Files
  • Use a main method to get parameters
  • Structuring the code
  • Get all the files in a directory
  • Open and read each file
  • Search text using regular expressions
  • Use arrays to store the results
  • Add an option to zip the results
2. Create a Command-Line Application That Accesses a Database
  • Use a properties file to get parameters
  • Use JDBC to access a database
  • Use Java crypto to decrypt strings
  • Use Java logging to report errors
  • Package your application in a JAR file
3. Create a GUI Application That Resizes Images
  • Use Swing to create a GUI
  • Use anonymous classes and lambdas for buttons
  • Use Java 2D classes for image manipulation
  • Basic Java math
  • Image rotation and saving
  • Use message boxes and prompts for user interaction
4. Create a Java API That Searches Stack Overflow
  • What is an API?
  • Set up the code
  • Access webpages using Java.net
  • Parse REST calls using JSON-P
  • Parse REST calls using Jackson
  • Test the API with JUnit
  • Final refactoring of classes
  • Document the API with Javadoc
Conclusion
  • Next steps

Taught by

Julian Robichaux

Reviews

4 rating at LinkedIn Learning based on 21 ratings

Start your review of Learning Java by Example

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.