Java Class Name Get classNameSubPackage(String className)

Here you can find the source of classNameSubPackage(String className)

Description

class Name Sub Package

Declaration

public static String[] classNameSubPackage(String className) 

Method Source Code

//package com.java2s;

public class Main {

    public static String[] classNameSubPackage(String className) {
        int index = className.lastIndexOf(".");
        if (index != -1) {
            String[] strArr = new String[2];
            strArr[0] = className.substring(0, index);
            strArr[1] = className.substring(index + 1);
            return strArr;
        }//  w  ww  .j  a v  a2s .  c  om
        return new String[] { "", className };
    }
}

Related

  1. className(String nodeName)
  2. className(String path)
  3. className(String underScore)
  4. classNames(String description)
  5. classNameSubName(String className)
  6. classNameWithType(String className, String type)
  7. getClassName(Class type)
  8. getClassName(Integer typeValue)
  9. getClassName(String string)