Skip to content

Instantly share code, notes, and snippets.

@Jack-Saleem
Created January 15, 2016 13:16
Show Gist options
  • Select an option

  • Save Jack-Saleem/74b6ed663e375e61030b to your computer and use it in GitHub Desktop.

Select an option

Save Jack-Saleem/74b6ed663e375e61030b to your computer and use it in GitHub Desktop.
Codeforces 118A StringTask program in java
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