2 ms·
It's hard competing with Google, the Crokerage answers to the example they use ("how to remove an element from an array" in Java) gives me ArrayList<char> ch
by w-m 7y ago
It's hard competing with Google, the Crokerage answers to the example they use ("how to remove an element from an array" in Java) gives me
ArrayList<char> charList = new ArrayList<char>(0);
for (int i= 0; i < b.length; i++) {
if (b[i] == condition) {
charList.Add(b[i]);
}
}
charList.toArray();
in Crokerage and
array = ArrayUtils.removeElement(array, element)
in Google/Stacksnippet.
It'll be interesting to see how long it takes that Google have a way of determining the confidence in the answers and have some algorithm that is able to reliably give a code answer. I'm sure they'll immediately put this in their snippet then, removing the need to click the StackOverflow links any more.