Java File Base Name Get basenamePart(String className)

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

Description

basename Part

License

Open Source License

Declaration

static String basenamePart(String className) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static String basenamePart(String className) {
        int lastdot = className.lastIndexOf('.');
        return (lastdot == -1) ? className : className.substring(lastdot + 1);
    }/*w  w  w . j  a  v  a 2  s. co  m*/
}

Related

  1. basename(String path)
  2. basename(String path)
  3. basename(String path, char separator)
  4. basename(String s)
  5. basename(String s)