Java String Quote quoted(String str)

Here you can find the source of quoted(String str)

Description

quoted

License

Apache License

Declaration

public static boolean quoted(String str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean quoted(String str) {
        if (str.startsWith("\"") && str.endsWith("\"")) {
            return true;
        }//from  w ww.j  a  v a  2 s .co m
        if (str.startsWith("'") && str.endsWith("'")) {
            return true;
        }

        return false;
    }
}

Related

  1. quoted(final String str)
  2. quoted(String i, char q)
  3. quoted(String path)
  4. quoteD(String s)
  5. quoted(String s)
  6. quoted(String text)
  7. quoted(String val, boolean wrap)
  8. quoted(String value)
  9. quoted(String value, boolean addQuotes)