/ Programming

Programming Problems

This is going to be a collection of different programming problems & funny mistakes I've come across while coding.

  • Don't accidentally make your classes or methods pubic instead of public.

  • Don't forget to iterate through your loops. I came across this one while looking at the Sakai code. They were iterating through a loop of questions like this, see if you can spot the problem...

      for(int i=0;i < QuestionPool.size();i++){
          Item = QuestionPool.get(0);
          ...
      }
    
  • I just had to debug Java code back from the Java 5 days which pretty much had no types at all (or this code just didn't use types) for some of the arrays and where everything was casted. It was like trying to find one specific needle in a haystack filled with the exact same needs.

Programming Problems
Share this