Java String Starts Wtih startsWithSpace(String s)

Here you can find the source of startsWithSpace(String s)

Description

starts With Space

License

Open Source License

Declaration

public static boolean startsWithSpace(String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean startsWithSpace(String s) {
        if (s != null && s.length() > 0) {
            char first = s.charAt(0);
            if (first == ' ')
                return true;
        }//from   w  w w . jav  a 2s.co m
        return false;
    }
}

Related

  1. startsWithQuote(String str)
  2. startsWithSeparator(String str)
  3. startsWithSeveralUpperCaseLetters(String string)
  4. startsWithSlash(String path)
  5. startsWithSlash(String url)
  6. startsWithSpaces(final String text)
  7. startsWithTag(String html, int position)
  8. startsWithUppercase(String str)
  9. startsWithUpperCase(String text)