Java String Shorten shorten(String className)

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

Description

shorten

License

Apache License

Declaration

static String shorten(String className) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    static String shorten(String className) {
        String[] split = className.split("\\.");
        StringBuilder sb = new StringBuilder();
        sb.append(split[split.length - 1]);
        return sb.toString();

    }//w  w  w. j av a  2  s .  c o m
}

Related

  1. shorten(byte[] array, int length)
  2. shorten(String className)
  3. shorten(String clazz)
  4. shorten(String fullClassName)
  5. shorten(String in)
  6. shorten(String input)