CodeGym/Java Tasks/Fixing bugs 🐛

Fixing bugs 🐛

  • 1
  • Locked
Fixing bugs 🐛
You can't complete this task, because you're not signed in.
Comments (5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
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.
Anonymous #11707874
Level 3 , Toronto, Canada
18 October 2025, 22:30
This task has a catch 22: if System.out.println(number); is commented out, it passes the last criteria but fails the second criteria. AI recommends removing that comment. Then it fails the last criteria but passes the second criteria. That's illogical. The two criteria contradict each other.