We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b17f4 commit 7e0e784Copy full SHA for 7e0e784
src/StringContainsVowels.java
@@ -1 +1,23 @@
1
+public class StringContainsVowels {
2
3
+ public static boolean
4
+ stringContainsVowels(String input) {
5
+
6
+ return input.toLowerCase().matches(".*[aeiou].*");
7
8
+ }
9
10
+ public static void main(String[] args) {
11
12
+ String input = "fdfd";
13
14
+ System.out.print(input + " ");
15
16
+ if (stringContainsVowels(input) == true) {
17
+ System.out.println("contains vowel");
18
+ } else {
19
+ System.out.println("does not contain vowel");
20
21
22
23
+}
0 commit comments