zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 45 forks source link

Use new String() to allocate string arguments before testing. #40

Closed vexorian closed 11 years ago

vexorian commented 11 years ago

Makes Java template allocate String arguments with the new operator. A common bug with new programmers / programmers who coded in a rush is to do == comparisons in simple problems. Like this thread: http://apps.topcoder.com/forums/?module=Thread&threadID=709720&start=0&mc=12#1380722