Here you can find the source of nvl(String source, String defaultString)
Parameter | Description |
---|---|
source | String |
defaultString | String |
public static String nvl(String source, String defaultString)
//package com.java2s; //License from project: Apache License public class Main { public static String nvl(String source) { return (source != null) ? source.trim() : ""; }// w w w.j a v a2 s .com /** * Method nvl. * * @param source * String * @param defaultString * String * @return String */ public static String nvl(String source, String defaultString) { return (source != null) ? source.trim() : defaultString; } }