Java tutorial
//package com.java2s; import java.util.Collection; public class Main { public static boolean isPresent(Collection<? extends Object> objects) { return ((objects != null) && (objects.size() > 0)); } }