▲ | derefr a day ago | |||||||
What’s with Java devs and not including `import` lines in example code? Even here, when intending to demonstrate how dumb Java’s boilerplate is. But I notice it everywhere. | ||||||||
▲ | TrianguloY a day ago | parent | next [-] | |||||||
Because usually you have an ide that manages imports for you automatically. So unless you are using a library that has multiple imports, usually you know the import to include, and in almost all cases it is automatically included. Btw: in the compact example! The IO class is implicitly imported, so that example truly works without any import at all! | ||||||||
▲ | andrewflnr a day ago | parent | prev | next [-] | |||||||
Among other things, I think a lot of Java IDEs automatically manage imports anyway. | ||||||||
| ||||||||
▲ | emccue 19 hours ago | parent | prev [-] | |||||||
i forgot. sorry. |