Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String removeHttpSuffix(String imgUrl) {
if (imgUrl.contains("?")) {
int tempIndex = imgUrl.indexOf("?");
return imgUrl.substring(0, tempIndex + 1);
}
return imgUrl;
}
}