String contains only
/* false */ import org.apache.commons.lang.StringUtils; public class StringUtilsExampleV1 { public static void main(String args[]) { System.err.println(StringUtils.containsOnly("r u m t", new char[] {'r', 'o'})); } }