In this second volume, you will dive into the intricacies of Java Standard Libraries. You will continue to raise your coding skills, and test your Java knowledge on tricky programming tasks, with the help of the pirate Captain CiaoCiao. This is the second of two volumes which provide you with everything you need to excel in your Java journey, including tricks that you should know in detail as a professional, as well as intensive training for clean code and thoughtful design that carries even complex software. Features: - 149 tasks with commented solutions on different levels - For all paradigms: object-oriented, imperative and functional - Clean code, reading foreign code, object-oriented modeling With numerous best practices, and extensively commented solutions to the tasks, these books provide the perfect workout for professional software development with Java.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on workout book for Java developers who already know the syntax and want to sharpen their command of the standard library through 149 graded, solution-commented exercises. Best suited to intermediate learners and working programmers who prefer learning by doing over reading reference documentation.
【Book Arc】
- **Opening (~0%–10%)**: Sets up the exercise format—star ratings for difficulty, how to work with the book, where solutions live—and frames the philosophy that solutions are "suggested," not definitive, so readers compare rather than copy.
- **Early (~10%–30%)**: Builds string-processing fluency: format strings and aligned output, regular expressions for matching and extraction, tokenizing with `StringTokenizer`, and character encodings/collation. Moves into numeric work—rounding rules, `Math` methods, and modeling a `Fraction` class against `Number` and `Comparable`.
- **Middle (~30%–50%)**: Extends into locale, date, and time (parsing varied date formats, computing durations with `Duration` vs. `Period`) and then into concurrency: parameterized `Runnable`s, thread states, sleeping, locks, and synchronization helpers.
- **Late (~50%–80%)**: Shifts to I/O and data plumbing—network programming with `URL`/`URLConnection`, an HTTP client, sockets and a port scanner, plus parsing XML, JSON, HTML (jsoup), Office documents, and ZIP archives.
- **Ending (~80%–100%)**: Database access via JDBC with an H2 setup and query exercises; the excerpts thin out here, so the closing chapters are only partially visible.
【Key Takeaways】
- **Exercises are graded by star level, not chapter order** (Opening): one star for warm-ups, two for combining techniques, three for multi-class designs requiring research—use the rating to calibrate how long to spend.
- **Solutions are deliberately separated from tasks** (Opening): they sit at the end of each chapter (and on GitHub) to prevent peeking, and are commented so you can follow the reasoning, not just the result.
- **Regular expressions are framed as a clarity tool when used well** (Early): the book drills full-match, partial-match, replacement, and separator use cases rather than treating regex as a black art.
- **Rounding is a rule-of-thumb minefield** (Early): a comparison table of cast, `floor`, `ceil`, `round`, and `rint` on negative and half values shows why picking the wrong one silently corrupts results.
- **Modeling a value type means honoring contracts** (Early): the `Fraction` exercise forces you through `Number`, `Comparable`, `equals`/`hashCode`, and `toString`—a compact lesson in doing a small class properly.
- **`Duration` and `Period` are not interchangeable** (Middle): `Duration` counts exact seconds while `Period` counts calendar days, so leap days decide which one you need.
- **Threads need parameterization and pacing** (Middle): passing state into a `Runnable` via constructor, and sleeping to avoid tight-loop bottlenecks, are recurring practical patterns.
- **The library is a toolbox spanning formats and protocols** (Late): the same book covers HTTP, sockets, XML/JSON/HTML, archives, and JDBC—breadth that mirrors real integration work.
【Reading Tips】
- **Skim the task statements, deep-read the solutions**: the pedagogical value is in the commented reasoning; attempt each task first, then compare.
- **Use the star ratings as a time budget**: knock out one-star tasks quickly to build momentum, and reserve real effort for two- and three-star problems.
- **Treat hard spots as deliberate**: regex construction, rounding edge cases, and thread synchronization are where the book expects you to struggle—don't skip the comparison tables.
- **Keep a scratch project open**: these are exercises, not prose; typing and running the code (including the H2/JDBC setup) is the point.
- **Cross-reference with the Javadoc**: several tasks explicitly require looking things up, which is itself part of the training.
【Coverage Limits】
The excerpts cover the book's framing, string/math/date/concurrency chapters, and the network and data-format chapters in outline, but the JDBC and later material is only partially visible, so this guide cannot fully map the closing chapters.
Page 6
⭑ 14 Compress Strings Lossless by Runlength Encoding ⭑⭑⭑ 14 Character Encodings and Unicode Collation Algorithm 15 Quiz: Encoding for Unicode Characters ⭑ 15...
Output the words one after the other, separated by a space. The punctuation marks and other separators are not critical. Example: • "erehW did eht etarip esa...
the method equals(…) and hashCode(). A good hash code will return a different hash code if the numerator or denominator changes. The realization of hashCode(...
as changed hands successfully, the pirates are chronicling their memories in a poetry album. The Captain CiaoCiao later adorns the album with stickers. Given...
in endLatch. The main program also waits with an endLatch.await() to unblock, and this is achieved by all athletes decrementing the counter so that it become...
=1, BBQ Grill=1, Vodka=3} drinking helmet Vodka PROPERTIES The class Properties is a special associative memory that associates only string with strings. The...
makes use of the Collections rotate(…) method. This method works in place, so it modifies the list. Our list is internal and not accessible from the outside....
s the second criterion. This allows the list to be sorted. Step 3: In the final step, the program must extract the first five elements from the sorted list....
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Java Programming Exercises Volume Two Java Standard Library (Christian Ullenboom) (z-library.sk, 1lib.sk, z-lib.sk)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Java Programming Exercises Volume Two Java Standard Library (Christian Ullenboom) (z-library.sk, 1lib.sk, z-lib.sk)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Java Programming Exercises Volume Two Java Standard Library (Christian Ullenboom) (z-library.sk, 1lib.sk, z-lib.sk)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment