Java String to convertString(String strValue)

Here you can find the source of convertString(String strValue)

Description

convert String

License

Open Source License

Declaration

public static String convertString(String strValue) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String convertString(String strValue) {
        return (strValue == null || strValue.equals("")) ? "" : strValue;
    }/*w w w . j  a  v a  2  s  .  co m*/

    public static String convertString(Object strValue) {
        return (strValue == null || strValue.equals("")) ? "" : strValue.toString();
    }
}

Related

  1. convertString(char firstCharacter, String value)
  2. convertString(Object obj, String nullTo)
  3. convertString(String label)
  4. convertString(String s)
  5. convertString(String s, Class cls)
  6. convertString(String value, Class type)
  7. convertString2Bytes(String str)
  8. convertString2GSonString(String str)
  9. convertStringArrayToFloatArray(String[] num)