This subcategory is for Java programmers. Don’t be shy, no question is too simple or too complicated.
Please, do not post here if your question is about a puzzle, a contest or anything that relates to the CodinGame platform (there are other categories for that purpose).
I just want to inform You (the creators of this wonderful platform), that the imports of Java puzzles template is actually falulty and also contians useless import statements as well:
The only useful import is for the util as its classes are often used during most puzzles. However, java.io is rarely needed (would it be needed sometimes, it can be included manually), and java.math is just plain wrong (it could be import java.lang.Math.*
, but classes under java.lang are accessible by default, so not needed to import math).
import java.util.*;
import java.io.*;
import java.math.*;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
class Solution {
...
I usually start coding by deleting these two useless import lines…
You may improve the template if you wish, although i’ve already getting used to it…
2 Likes
Thank you for your feedback, there will always be room for improvements.
I’m summoning @SaiksyApo (because i don’t know who to summon) he will consider your request with the team.
Inner Classes aren’t supported right?
class Solution {
public static void main(String args[]) throws Exception {
new Inner();
new Outer();
}
static class Inner {}
}
class Outer {}
This works.
1 Like