Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static final String getFullFileName(String path) {
        String name = null;
        if (path != null) {
            final int index = path.lastIndexOf("/");
            if (index == -1) {
                name = path;
            } else {
                name = path.substring(index + 1);
            }
        }
        return name;
    }
}