Java tutorial
//package com.java2s; public class Main { /** * Checks if the argument is not null and not empty. If it is, displays an Toast with the message given in parameter * * @param arg The string argument to be checked * @return True if the argument is correct, false otherwise */ public static boolean checkArguments(String arg) { return !(arg == null || arg.isEmpty()); } }