Created
January 15, 2016 13:16
-
-
Save Jack-Saleem/74b6ed663e375e61030b to your computer and use it in GitHub Desktop.
Codeforces 118A StringTask program in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class StringTask | |
| { | |
| public static void main(String []args) | |
| { | |
| Scanner ip = new Scanner(System.in); | |
| char[] ch = new char[100]; | |
| char[] v = {'a','e','i','o','u','y'}; | |
| String s = ip.next().toLowerCase().replaceAll("[aeiouyAEIOUY]", ""); | |
| StringBuilder sb = new StringBuilder(); | |
| for(int i=0;i<s.length();i++) | |
| { | |
| sb.append("."); | |
| sb.append(s.charAt(i)); | |
| } | |
| System.out.println(sb); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment