Java Array Value Any any(final String a, final String b)

Here you can find the source of any(final String a, final String b)

Description

any

License

Apache License

Declaration

public static String any(final String a, final String b) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

public class Main {
    public static String any(final String a, final String b) {
        if (a != null && a.length() > 0) {
            return a;
        }/*from ww w .j  a  v a  2 s. c om*/
        return b;
    }
}

Related

  1. any(boolean[] b)
  2. any(boolean[] values)
  3. anyAreEmpty(String... words)
  4. anyBlank(String... ss)
  5. anyEmpty(final String head, final String... tail)
  6. anyEmpty(String[] array)