Your main problem there is that you're trying to add instructions directly to a class, rather than them being in a method. The declarations would work (but probably aren't what you intended - there's no reason for id1-id5 to be member variables). But the add lines have to be in a method (or at least an initialisation block).
posted 6 years ago
Doh! Silly mistake, thanks Matthew!
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad: