Bugs.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package bugs;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
*
* @author student
*/
public class Bugs {
/**
* @param args the command line arguments
*/
public static void main
(String[] args
) { Scanner s
= new Scanner
(System.
in); List<String> r = new LinkedList<String>();
String slovo
= k.
substring(2, k.
length()); for (int i = 0; i < g; i++) {
k = s.nextLine();
r.add(k.replace(slovo, ""));
}
}
}
}