How to check for the contents of a java fixed-length string

		String sti = "     ";
		//Trim the space
		//As a result, whether it is blank
		if(sti.trim().isEmpty()) {
			System.out.println("blank");
		}else {
			System.out.println("notBlank");
		}

Recommended Posts

How to check for the contents of a java fixed-length string
[Java] How to get to the front of a specific string using the String class
Check the contents of the Java certificate store
Memo: [Java] Check the contents of the directory
How to get the contents of Map using for statement Memorandum
Customize how to divide the contents of Recyclerview
[Java] (for MacOS) How to set the classpath
[Java] How to get the authority of the folder
[Java] How to use substring to cut out a part of a character string
How to find out the Java version of a compiled class file
How to get the absolute path of a directory running in Java
[Java] How to get the URL of the transition source
[Java] How to convert one element of a String type array to an Int type
How to write Scala from the perspective of Java
[Java] How to get the maximum value of HashMap
[Java] How to easily get the longest character string of ArrayList using stream
[Java] How to cut out a character string character by character
[Rails] How to get the contents of strong parameters
Java: Use Stream to sort the contents of the collection
How to make a mod for Slay the Spire
How to execute WebCamCapture sample of NyARToolkit for Java
[Docker] How to see the contents of Volumes. Start a container with root privileges.
SDWebImage: How to clear the cache for a particular UIImageView
How to create a lightweight container image for Java apps
Command to check the number and status of Java threads
[Java] How to convert a character string from String type to byte type
[Java] How to use substring to cut out a character string
How to change the contents of the jar file without decompressing
A memorandum to reach the itchy place for Java Gold
How to check the extension and size of uploaded files
Reintroduction to Java for Humanities 0: Understanding the Act of Programming
[jsoup] How to get the full amount of a document
How to check the database of apps deployed on Heroku
[Rails] Check the contents of the object
How to make a Java container
[Java] How to create a folder
How to make a Java array
Considering the adoption of Java language in the Reiwa era ~ How to choose a safe SDK
[Rails] How to omit the display of the character string of the link_to method
[Rails] How to change the page title of the browser for each page
I tried to summarize the methods of Java String and StringBuilder
[chown] How to change the owner of a file or directory
[Java] How to convert from String to Path type and get the path
kotlin & Java: How to hide the toolbar only for specific fragments
How to make a groundbreaking diamond using Java for statement wwww
How to get the length of an audio file in java
How to increment the value of Map in one line in Java
How to check Java installed on Mac
[Java] How to use the File class
Check the contents of params with pry
Introduction to java for the first time # 2
[Java] How to use the hasNext function
[java] Summary of how to handle char
[Java] How to use the HashMap class
[Java] How to use the toString () method
How to create a Maven repository for 2020
Studying how to use the constructor (java)
[Processing × Java] How to use the loop
How to determine the number of parallels
How to make a Discord bot (Java)
How to output Java string to console screen