Created
February 7, 2019 08:15
-
-
Save imfromthenet/e5de7ca3770595f37bfc80905085a05e to your computer and use it in GitHub Desktop.
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
public Stack<String> split(Integer number) { | |
Stack<String> stack = new Stack<>(); | |
Stream.of(number.toString().split("")) | |
.forEach(stack::push); | |
return stack; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment