In general, if you're getting some sort of error, please post your code - at least the part where the error occurs (and indicate which line).
In this case I guess you are trying to call the World class 'addObject' method, which has a capital 'O'. In other words it is 'addObject' not 'addobject'.