Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getFileNameFromUrl(String value) {
        if (value.length() > 0)
            return value.substring(value.lastIndexOf('/') + 1);
        else
            return value;
    }
}