Java String Starts Wtih startsWithWovel(String s)

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

Description

starts With Wovel

License

Open Source License

Declaration

public static boolean startsWithWovel(String s) 

Method Source Code

//package com.java2s;
/**//from  www  .j  a  v  a  2  s  . co m
 * Copyright (c) 2013 Puppet Labs, Inc. and other contributors, as listed below.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Puppet Labs
 *
 */

public class Main {
    public static boolean startsWithWovel(String s) {
        return s != null && s.length() > 0 && isWovel(s.charAt(0));
    }

    public static boolean isWovel(char c) {
        return "AEIOUYaeiouy".indexOf(c) >= 0;
    }
}

Related

  1. startsWithVowel(String word)
  2. startsWithWeight(String s1, String s2)
  3. startsWithWhitespace(final CharSequence charSeq)
  4. startsWithWhitespace(String s)
  5. startsWithWithoutBeingFollowedByLetter(String s, String compareTo)