Skip to content

Instantly share code, notes, and snippets.

View imfromthenet's full-sized avatar
💭
discipline == freedom

Paulius Olsevskas imfromthenet

💭
discipline == freedom
View GitHub Profile
public Stack<String> split(Integer number) {
Stack<String> stack = new Stack<>();
Stream.of(number.toString().split(""))
.forEach(stack::push);
return stack;
}