Here you can find the source of unquote(String s)
Parameter | Description |
---|---|
s | a parameter |
public static String unquote(String s)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w. j av a 2 s .c o m * @param s * @return the input string, with quotes removed on either end. */ public static String unquote(String s) { while (s.startsWith("\"")) { s = s.substring(1); } while (s.endsWith("\"")) { s = s.substring(0, s.length() - 1); } return s; } }