code: public String[] parseClassName(String fullClassName) {
  
          int dotIndex = fullClassName.lastIndexOf(".");
          String packageName = null;
          String className = fullClassName;
  
          if (dotIndex > 0) {
              packageName = fullClassName.substring(0, dotIndex);
              className = fullClassName.substring(dotIndex + 1);
          }
  
          return new String[] { packageName, className };
      }
docs: Splits a class name into two strings.
  <br>
  [0] = package name (or null if the class is unpackaged) <br>
  [1] = class name