Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * 
     * @param predicateStr
     * @return
     */
    public static String safeQuotePredicate(String predicateStr) {
        // Check if starts with file name
        final String fileExtension = ".owl";
        if (predicateStr.contains(fileExtension)) {
            int startingIndex = predicateStr.indexOf(fileExtension) + fileExtension.length();
            return predicateStr.substring(startingIndex, predicateStr.length());
        }

        return predicateStr;
    }
}