How I do search for the string CTG from a file that is read as a string? And then give a count of how many times it shows up? For example, how would I add code to do this in here or anywhere in general:
public String readStrFromFile(){
FileResource readFile = new FileResource();
String DNA = readFile.asString();
//System.out.println("DNA: " + DNA);
return DNA;
}//end readStrFromFile() method;