-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathString.java
More file actions
23 lines (22 loc) · 759 Bytes
/
String.java
File metadata and controls
23 lines (22 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
public class String {
public static void main(String[] args) throws Exception{
Scanner sc=new Scanner(System.in);
char[] c=sc.nextLine().toLowerCase().toCharArray();
for(int i=0;i<c.length;i++){
if(c[i]=='A' || c[i]=='a' || c[i]=='E' || c[i]=='e' || c[i]=='I' || c[i]=='i' || c[i]=='O' ||
c[i]=='o' || c[i]=='U' || c[i]=='u' || c[i]=='Y' || c[i]=='y'){
c[i]='\0';
}
}
for(int i=0;i<c.length;i++){
if(c[i]!='\0'){
System.out.print("."+c[i]);
}
}
}
}