if (!knowHowToSolve) { try { searchOn("StackOverflow"); } catch (NothingFoundException e) { searchOn("Google"); } }