Java Number Max Value max(String s)

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

Description

String promotion - returns either the given string or empty string (if given string is null).

License

Open Source License

Declaration

public static String max(String s) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from  w  w  w  .  ja va  2  s  .c  om
     * String promotion - returns either the given string or empty string (if given string is null).
     */
    public static String max(String s) {
        return s == null ? "" : s;
    }
}

Related

  1. max(Object o1, Object o2)
  2. max(String a, String b)
  3. max(String content, int max, String dotDotDot)
  4. max(String left, String right)
  5. max(String name)
  6. max(T a, T b)
  7. max(T a, T b)
  8. max(T c1, T c2)
  9. max(T c1, T c2)