Course Java - Task: Fixing bugs 🐛
[Go to site: main page, start]

CodeGym/Java Tasks/Fixing bugs 🐛

Fixing bugs 🐛

  • 1
  • Locked
Fixing bugs 🐛
You can't complete this task, because you're not signed in.
Comments (11)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Anonymous _666
Level 4 , Shepetivka , Ukraine
15 June, 16:43
light work baby
7 March, 22:40
I know the simple solution is to remove "The program must not print anything to the console after the fix.", but in case that requirement has to stay: No other changes are allowed in the program except adding comments to comment out erroneous lines and
System.out.println(number);
Anastasiia Nevmyvaka
Level 3 , Chicago , United States
13 February, 17:19
And as I can see, many people starting Oct 2025 commented this task, but nothing was done to fix it. Probably it pointless to wait for someone to do it.
Anastasiia Nevmyvaka
Level 3 , Chicago , United States
13 February, 17:13
Impossible to do this task. Please fix the errors in the task first.
Anonymous #11757337
Level 2 , Hyderabad , India
13 February, 17:06
After the changes the program must compile successfully without errors. System.out.println(number); is the correct statement but The program must not print anything to the console after the fix. means ..?
Anonymous #11750700
Level 2 , Richmond , United States
24 January, 17:22
I'm just glad the comments have reinforced that I'm not crazy
Anonymous #11741552
Level 2 , Queretaro , Mexico
21 December 2025, 05:08
Um, what?? How am I supposed to not output anything into console without being able to modify the print line??
Dunch Master
Level 3 , United States of America , United States
5 December 2025, 19:08
How am I supposed to both leave the println line to print out the number variable since it doesn't cause errors but also make sure nothing is printed out at the end? CodeGym please remove the condition that nothing can be printed out at the end since it conflicts with the purpose of the exercise which is to error correct.
Surya K
Level 2 , United States of America , United States
20 October 2025, 22:37
Lol, can't satisfy all conditions.
Anonymous #11707874
Level 3 , Toronto , Canada
18 October 2025, 22:37
The trick is the incorrect thinking that declaring int uninitialized; is an error, and has to be commented out. It is NOT an error--which is why the ai didn't say anything. This is a bug in codegym.