Java tutorial
//package com.java2s; public class Main { public static boolean contains(final String label, final String text) { if (label == null) { return false; } return label.contains(text); } }