Skip to content

Commit 7775cc3

Browse files
Add files via upload
1 parent d1e86b3 commit 7775cc3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: delete vowels.java

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
public class Main
2+
{
3+
public static void main(String[] args) {
4+
String str="factorial";
5+
String str1="";
6+
for(int i=0;i<str.length();i++){
7+
char ch=str.charAt(i);
8+
if(!(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')){
9+
str1+=ch;
10+
}
11+
}
12+
System.out.print(str1);
13+
}
14+
}

0 commit comments

Comments
 (0)