Here you can find the source of shorten(String line)
Parameter | Description |
---|---|
line | The String to be shortened |
public static String shorten(String line)
//package com.java2s; /*************************************** * ViPER * * The Video Processing * * Evaluation Resource * * * * Distributed under the GPL license * * Terms available at gnu.org. * * * * Copyright University of Maryland, * * College Park. * ***************************************/ public class Main { /**//w w w . j av a2s . c om * Removes the first and last character of the string. * * @param line The String to be shortened * @return The substring. */ public static String shorten(String line) { line = line.trim(); return (line.substring(1, line.length() - 1).trim()); } }