Utils.java Source code

Java tutorial

Introduction

Here is the source code for Utils.java

Source

public class Utils {
    /**
     * @param uri
     * @return
     */
    static public String eliminateQuery(String uri) {
        int idx = uri.indexOf('?');
        if (idx < 0)
            return uri;
        return uri.substring(0, idx);
    }
}