1final String vowels = "aeiou";
2for(int i = yourString.length() - 1; i > 0; i--)
3{
4 if(vowels.indexOf(yourString.toLowerCase().charAt(i)) >= 0)
5 {
6 System.out.println("The last vowel is : " + yourString.charAt(i));
7 break;
8 }
9}