List of usage examples for java.lang String substring
public String substring(int beginIndex, int endIndex)
From source file:Main.java
public static String urlToFilename(String url) { return url.substring(url.lastIndexOf("/") + 1, url.length()); }
From source file:Main.java
public static String getFileName(String url) { return url.substring(url.lastIndexOf('/') + 1, url.length()); }
From source file:Main.java
public static String getFileNameFromUrl(String url) { return url.substring(url.lastIndexOf("/"), url.length()); }
From source file:Main.java
public static String removeBraces(String src) { return src.substring(1, src.length() - 1); }
From source file:Main.java
public static String firstCharUp(String word) { return word.substring(0, 1).toUpperCase() + word.substring(1).toLowerCase(); }
From source file:Main.java
private static String toUpCase(String str) { return (str.substring(0, 1)).toUpperCase() + str.substring(1, str.length()); }
From source file:Main.java
public static String capitalize(String orig) { return orig.substring(0, 1).toUpperCase() + orig.substring(1); }
From source file:Main.java
public static String capitalizeWord(String word) { return word.substring(0, 1).toUpperCase() + word.substring(1); }
From source file:Main.java
public static String parseJsonDate(String date) { return date.substring(0, 10); }
From source file:Main.java
public static String capitalizeFirstLetter(String str) { return str.substring(0, 1).toUpperCase() + str.substring(1); }