Im saving Levels in int Numbers...
It depends on, what is in the Level.
maybe take a look at the Level class of this scenario: http://www.greenfoot.org/scenarios/3284
that is one possible solution... And in my opinion it's the easiest. :)
Then you just have to write a Method, that can read the code and creates the Level.