Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglaibao committed Jan 23, 2018
1 parent 1711173 commit 9992a88
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public V apply(V value) {
}


public static String transform(String str,Function<String,String> stringFunction) {
return stringFunction.apply(str);
}

public static void main(String[] args) {
// This code does not compile
//Object funObject = it -> it;
Expand All @@ -44,5 +48,9 @@ public static void main(String[] args) {
BiFunction<String, String, String> concat = (a, b) -> a + b;



String stringValue = transform("wanlaibao",String::toUpperCase);

System.out.println(stringValue);
}
}

0 comments on commit 9992a88

Please sign in to comment.