strings: Java Strings deep dive companion code (pool/intern, indy concat vs StringBuilder JMH, text blocks, string templates)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
Claude
2026-09-30 19:06:34 +00:00
parent 97e7352f45
commit 366579f478
22 changed files with 563 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
iteration 0: length=1 value=0
iteration 1: length=2 value=01
iteration 2: length=3 value=012
iteration 3: length=4 value=0123
iteration 4: length=5 value=01234
characters copied in total across the loop results: 15
n=20000: final length=20000, characters in all intermediate strings=200010000