This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.weareethic.vertx; | |
import lombok.extern.slf4j.Slf4j; | |
@Slf4j | |
public class Test { | |
public static void call(int i) { | |
if (i == 0) { | |
throw new IllegalArgumentException("Reached argument 0"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | |
Write a function called `evenAndPalindromeStrings` | |
that takes a string as an input and returns the | |
words in the string that are of even length and are | |
also palindromes. | |
Input - "abba cbbc cbc" | |
Ouptut - ["abba","cbbc"] | |
Psuedo code - | |
1) Break the string by spaces into a list of words |