-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram314.java
More file actions
50 lines (45 loc) · 942 Bytes
/
Program314.java
File metadata and controls
50 lines (45 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import java.util.*;
class CheckVowel
{
public String s;
public CheckVowel(String str)
{
s=str;
}
public void Vowel()
{
int flag=0;
char Arr[]=s.toCharArray();
char Arr1[]={'a','e','i','o','u','A','E','I','O','U'};
for(int i=0;i<Arr.length;i++)
{
for(int j=0;j<Arr1.length;j++)
{
if(Arr[i]==Arr1[j])
{
flag=1;
break;
}
}
}
if(flag==1)
{
System.out.println("True");
}
else
{
System.out.println("False");
}
}
}
class Program314
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter String :");
String str=sc.nextLine();
CheckVowel obj=new CheckVowel(str);
obj.Vowel();
}
}