
Java Tutorial - Text Blocks | JDK 15
In this episode of the Java series, I show you how to work with Text Blocks which are a new way to declare Strings starting in Java 15. They are simple but provide great improvements and makes our lives easier. #Java #JDK15 #JavaTutorial
Code: https://github.com/Java-Complete-Tutorial/text-blocks-jdk15
Article: https://simpson.hashnode.dev/java-15-text-blocks
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've tried it and it's awesome! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=kodysimpson&utm_content=description-only
Join the Community! - https://discord.gg/cortexdev
Want to Support the Channel?
Become a Member: https://www.youtube.com/channel/UC_LtbK9pzAEI-4yVprLOcyA/join
or: https://paypal.me/kodysimpson?locale.x=en_US
My Socials:
Github: https://github.com/KodySimpson
Instagram: https://www.instagram.com/kody_a_simpson/
Twitter: https://twitter.com/kodysimp
00:00 Intro
00:14 Article Announcement
00:27 Text Blocks explanation
00:50 New Lines in a String
02:12 Text Blocks examples
03:30 JSON in a String
04:20 Text Blocks with Json
05:35 HTML in a String
06:15 Text Blocks with HTML
06:45 Indentation explanation
09:25 Escaping characters
09:38 Escaping characters in a String
10:10 Escaping characters in a Text Block
12:05 Formatting
14:30 What have you learned
15:10 Outro
15:30 Become a member to get swag
More Videos coming soon.
Leave a comment for any future video suggestions.