Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String getExtension(String path) {
        int dot = path.lastIndexOf('.');
        if (dot == -1) {
            return "";
        }
        return path.substring(dot);
    }
}