Ubuntu Pastebin

Paste from alpha_1351awev at Sat, 4 Apr 2015 04:34:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
    public static String filter(String X, String Y) {
       String y = ""; 
       for (int i =0; i<(X.length() - Y.length()); i++) {
           if(!X.substring(i, i+Y.length()).equals(Y)){
               y+= X.substring(i, i+Y.length());
               
            }
 
        }
        return y;
    }
    
Download as text