Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static boolean checkValidity(String filePath) {
        String[] array = filePath.split(".");
        if (array[array.length - 1].equals("xml")) {
            return true;
        } else {
            return false;
        }
    }
}