Typos in challanges. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Typos in challanges.

I don't like challange questions where the error is occured by typo. For example: Whats the output ? class C(){ public int SUM = 0; C(){ SUM++; } public static void main(String args[]){ C c1 = new C(); C c2 = new C(); System.out.print(c.SUM); } } ERROR, because no instance name c. In an IDE it not allowed to compile. I think it would be a nice question about class variables, and feel the diffrrence between this and static variable. What do u think?

13th May 2017, 4:36 PM
Szabó Gábor
Szabó Gábor - avatar
1 Answer
+ 1
haha yeaa agreed!! =.=
14th May 2017, 4:54 PM
Joshua Lauwrich Nandy
Joshua Lauwrich Nandy - avatar