Here you can find the source of startsWithWovel(String s)
public static boolean startsWithWovel(String s)
//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; } }