Advertisement
mikhail_dvorkin

StringUtils

Feb 27th, 2017
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. package me.dvorkin;
  2.  
  3. public class StringUtils {
  4.     public static String removeVowels(String s) {
  5.         return s.replaceAll("[aeiouAEIOU]", "");
  6.     }
  7.    
  8.     public static String removeN(String s) {
  9.         return s.replace("N", "").replace("n", "");
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement