|
|
|
|
|
by cakoose
2496 days ago
|
|
> Now let’s compare that to the equivalent Java program: public class SquaresOfIntegers {
public static void main(String[] args) {
for (int i=0; i<25; i++)
System.out.println(i*i);
}
}
> This is considerably more wordy, even if you don’t count the enclosing class.First of all, Java is famously verbose. Nobody is impressed when a language is more concise than Java. But even ignoring that, the comparison isn't representative. The enclosing class and 'main' function aren't needed for every additional fragment of code, so it probably shouldn't be counted here. |
|