ok, i don't know how to join one bit of code onto the next but here is the next bit (kind of) working from a stated string similar to what they will work
Code:
on*/import java.util.*;
import java.lang.*;
public class SplitLines {
public static void main(String[] Args)
{
SplitLines s = new SplitLines();
}
/** Creates a new instance of SplitLines */
public SplitLines() {
String text = "catA1.cyt";
String[] fields = text.split("\\W");
for(int x=0;x<1;x++)
System.out.println(fields[0]);
}
}
this splits the sting in to catA1 and .cyt printing just catA1.
not figured out how to get rid of cat yet.