Originally Posted by
helloworld922
Are you taking a class in college? You should ask your professor about this. I've rarely had to re-define the standard system streams (System.in, System.out, System.err), you don't need to import java.io if you're just using these streams. As aussiemcr said, on a technicality you could use the StringBuilder constructor since it's technically not in the String class
No no, I didn't mean redefine them, just, assign a variable to them, so that instead of writing, say, System.out.print..., I would just write [chosen variable name].print... But yeah, I am taking a class at the university, so I may just ask the professor about this, as well.
Originally Posted by
helloworld922
I like using Eclipse because it will automatically include imports for me, or if it can't figure out which import to use, it will ask me where I want to import it from. Saves me having to memorize which packages different classes are found in
Yeah, I use Eclipse, as well, but when I started out and stumbled upon the above-mentioned problem, I didn't know it tells you what's missing.