I love: JavaAndroidFirebase
  1. public class ContactMe {
  2. public static void main(String[] args) {
  3. List<List<Character>> list = Arrays.asList(
  4. Arrays.asList('M', 'O', 'C'),
  5. Arrays.asList('.', 'L', 'I'),
  6. Arrays.asList('A', 'M', 'G'),
  7. Arrays.asList('@', 'O', 'M'),
  8. Arrays.asList('A', 'M', 'X'),
  9. Arrays.asList('E', 'L', 'A'));
  10.  
  11. new StringBuilder(list.stream()
  12. .flatMap(List::stream)
  13. .map(s -> s.toString().toLowerCase())
  14. .filter(s -> s.length()>0)
  15. .collect(Collectors.toList()).stream()
  16. .collect(Collectors.joining())).reverse()
  17. .toString().chars().mapToObj(c -> (char) c)
  18. .collect(Collectors.toList())
  19. .forEach(System.out::print);
  20. }
  21. }
profile for Alex Mamo on Stack Exchange, a network of free, community-driven Q&A sites