First of all, the String class, including its methods, are in the java.lang.String package, which is in rt.jar