MCPcopy Create free account
hub / github.com/careercup/ctci / tokenize

Method tokenize

java/Chapter 17/Question17_10/QuestionString.java:124–130  ·  view source on GitHub ↗
(char[] input)

Source from the content-addressed store, hash-verified

122 }
123
124 private void tokenize(char[] input) {
125 tokens = new ArrayList<String>();
126 int i = 0;
127 while (i < input.length) {
128 i = setNextToken(input, i);
129 }
130 }
131
132 private int setNextToken(char[] input, int inputIndex) {
133 int i = inputIndex;

Callers 1

encodeMethod · 0.95

Calls 1

setNextTokenMethod · 0.95

Tested by

no test coverage detected