#!/usr/bin/env bash
if [[ "$(find . -name '*.java' -exec grep 'http://' /dev/null {} +)" ]]; then
echo "http protocol found"
else
echo " http not found"
fi
find . -name '*.java' -exec grep 'http://' /dev/null {} + || echo "No http found"