New to code golf and tried finding an answer to this question but couldn't (surprisingly)
When scoring my golfed Java code I was told that I need to add in my imports as part of my score. My question is, if for example I am using a List
. Do I need to use import java.util.*
or (if it is only appearing once in my code anyway) use java.util.List<T> list = whatever;
when I make the actual call which would obviously be shorter.
import
if you dojava.util.List
. \$\endgroup\$