标签:
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); while(sc.hasNext()){ String str=sc.next(); int ans=0; for(int i=0;i<str.length();i++){ char temp=str.charAt(i); if(temp==‘a‘||temp==‘e‘||temp==‘i‘||temp==‘o‘||temp==‘u‘){ ans=i+1; break; } } System.out.println(ans); } } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5346939.html