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
()
Ex_Files_LearnJava_Example.zip
(16.9 MB)