<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Repeat on Devops Monk</title><link>https://devops-monk.com/tags/repeat/</link><description>Recent content in Repeat on Devops Monk</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 04 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devops-monk.com/tags/repeat/index.xml" rel="self" type="application/rss+xml"/><item><title>New String Methods (Java 11): isBlank, lines, strip, repeat</title><link>https://devops-monk.com/tutorials/java11/string-methods/</link><pubDate>Mon, 04 May 2026 00:00:00 +0000</pubDate><guid>https://devops-monk.com/tutorials/java11/string-methods/</guid><description>New String Methods in Java 11 Java 11 added six new instance methods to java.lang.String. None require any imports — they are part of the standard String class.
Method Returns Description isBlank() boolean True if string is empty or contains only whitespace lines() Stream&amp;lt;String&amp;gt; Stream of lines split by line terminators strip() String Removes leading and trailing Unicode whitespace stripLeading() String Removes leading Unicode whitespace only stripTrailing() String Removes trailing Unicode whitespace only repeat(int n) String Returns the string repeated n times isBlank() Returns true if the string is empty or contains only whitespace characters as defined by Character.</description></item></channel></rss>