Sure thing mate. You've to use .length() which returns the size of a string and .substring(start, stop) to read a string from the beginning till the end. Here is a working example:
Code:
public class Testing{
public static void main (String[] arguments){
String ie = "The.Dog.Ran.";
System.out.println(ie.substring(0, ie.length()-1));
}
}
Regards!