Here you can find the source of checkContainSpace(final String x)
Parameter | Description |
---|---|
x | the string value for checking |
public static boolean checkContainSpace(final String x)
//package com.java2s; //License from project: Apache License public class Main { /** The Constant SPACE. */ private static final String SPACE = " "; /**// w w w. j a v a 2 s . c o m * Check string for containing space. * * @param x * the string value for checking * @return true, if string not null and not contain space */ public static boolean checkContainSpace(final String x) { return !(x != null && x.contains(SPACE)); } }