// Java public boolean isEmpty(String s) { return s.length() == 0; } # ruby def empty?(s) return s.size == 0 end