Skip to content

Commit

Permalink
java8 的toChars的使用
Browse files Browse the repository at this point in the history
  • Loading branch information
Xikl committed Nov 14, 2018
1 parent 67a5aa0 commit e20af39
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ public void isValid() {
boolean valid = solution.isValid(s);
System.out.println(valid);
}

@Test
public void name() {
String word = "bcde";
word.chars().map(charStr -> charStr - 'a').forEach(System.out::print);
}
}

0 comments on commit e20af39

Please sign in to comment.