void (List<String> data) { boolean found = false; if(Math.random() > 0.5) { found = true; } else { for (String str : da<caret>ta) { String trimmed = str.trim(); if (!trimmed.isEmpty()) { found = true; break; } } } System.out.println(found); }