Java Playbook
Like other developers, you face common challenges- working with strings, handling numbers, processing collections, reading from files, etc. This course will teach you how to solve these challenges using proven recipes quickly and efficiently.
What you'll learn
Java continues to evolve and so do optimal solutions to common code tasks. In this course, Java Playbook, you'll learn how to solve these tasks. First, you’ll explore the most concise, efficient, and correct solutions to handling strings and numbers. Next, you’ll discover how to solve common operations revolving around dates and times. Then, you'll master frequently required tasks related to collections. Finally, you’ll delve into how to write succinct code that works with files and directories. When you’re finished with this course, you’ll have the skills and knowledge of tackling common yet important coding tasks in Java needed to develop robust software.
Table of contents
- Introduction 2m
- Removing Whitespace 4m
- Is This String Empty or Blank? 2m
- Transform Strings the New Way 3m
- Comparing Strings the Right Way 3m
- Iterating over Characters 3m
- Check if a String Contains Specific Characters 4m
- Exercise 01 - Determine if Numbers Contain Only Digits 0m
- Finding and Replacing Matches 4m
- Iterating over Many Lines 2m
- Tokenizing a String 3m
- Joining Strings 3m
- Building Strings in a Loop 1m
- Prefer Text Blocks 1m
- Handling Text Localization 3m
- Generating Random Strings 2m
- Using Libraries 3m
- Demo App: Extract and Sanitize Data 4m
- Module Summary 1m
- Introduction 2m
- Converting Strings to Numbers 1m
- Checking if a String Is a Number 6m
- Formatting Numbers 3m
- Localizing and Compact Formatting Numbers 4m
- Comparing Integers 2m
- Doing Floating-point Arithmetic 5m
- Handling Really Large Numbers 1m
- Rounding with the Math Class 4m
- Rounding with DecimalFormat and BigDecimal 4m
- Exercise 02 - Format and Round Numbers 0m
- Generating Random Numbers and Values 2m
- Demo App 1: Converting a List of String Numbers 3m
- Demo App 2: Doing Arithmetic and Rounding Numbers 2m
- Module Summary 1m
- Introduction 1m
- Quick Date and Time API Overview 3m
- Getting the Difference between Two Dates 2m
- Exercise 03 - Calculate Difference In Age 0m
- Comparing Two Dates 1m
- Getting the First or Last Day of a Period 2m
- Handling Recurring Events 3m
- Adding or Subtracting Dates 3m
- Demo App 1: Time Left This Year 3m
- Formatting Dates 5m
- Handling Multiple Formats 2m
- Converting From and to the Old Date 2m
- Getting The Current Time 3m
- Printing All Zone IDs 2m
- Getting the Start and End of the Day 3m
- Calculating the Arrival Time 6m
- Demo App 2: Current Time in Other Time Zones 3m
- Module Summary 1m
- Introduction 2m
- Adding Elements to an Array 3m
- Converting Between Array and List 4m
- Create a List and Add Elements 3m
- Check if the List Is Empty 1m
- Remove Values From a List 2m
- Remove Duplicates From a List 2m
- Find Duplicates and Different Elements in Two Lists 2m
- Replace Elements in a List 3m
- Simple Sorting of a List 3m
- Exercise 04 - Get and Sort Unique Values 0m
- Advanced Sorting of a List 6m
- Map Overview 3m
- Find Duplicate Values in a Map 3m
- Remove or Replace Elements in a Map 6m
- Check Map Equality 4m
- Sorting a Map 5m
- Merging Maps 6m
- Module Summary 2m
- Introduction 1m
- IO vs. NIO vs. NIO2 3m
- Converting Between File and Path 2m
- Using the Right Separator 2m
- Determine the Base Directory 1m
- Check Access to a File 3m
- Reading Small Files 2m
- Reading Big Files 4m
- Writing to a File 5m
- Reading From and Writing to Binary Files 1m
- Copy a File 3m
- Exercise 05 - Copy and Append to a File 0m
- Move or Rename a File 1m
- Delete a File 2m
- Iterate over Files 7m
- Walking the File Tree 4m
- Create a Directory 2m
- Copy and Delete a Directory 5m
- Demo App: Collect and Copy Log Files 6m
- Further Study 1m