Java String Quote quote(String s)

Here you can find the source of quote(String s)

Description

quote

License

Open Source License

Declaration

public static String quote(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static String quote(String s) {
        return isEmpty(s) ? "" : '"' + s + '"';
    }//from  ww w .  j ava 2s.  c  o  m

    public static boolean isEmpty(String s) {
        return s == null || s.isEmpty();
    }
}

Related

  1. quote(String name)
  2. quote(String name)
  3. quote(String p_sql)
  4. quote(String p_string)
  5. quote(String path)
  6. quote(String s)
  7. quote(String s)
  8. quote(String s)
  9. quote(String s)