Web Article - Java 8 Stream

List myList =
    Arrays.asList("a1", "a2", "b1", "c2", "c1");

myList
    .stream()
    .filter(s -> s.startsWith("c"))
    .map(String::toUpperCase)
    .sorted()
    .forEach(System.out::println);

Full article: Java 8 Stream Tutorial

Stream Docs


Web Article - Logback Configuration Example

package com.javacodegeeks.examples.logbackexample.beans;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MarcoPoloBean {
 private static final Logger logger = LoggerFactory.getLogger(MarcoPoloBean.class);
 
 public void sayMarco() {
  String msg = "I'm Marco";
  
  logger.info("Hello there. I am {}", msg);
  
  logger.debug("Debugging message");
 }
}

jQuery Rain

jQuery plugins, tutorials, cool effects with jquery examples , demo, demos.





Powered by Blogger