Professional Documents
Culture Documents
Atkinson, M.PJ", Dayn~s, L. t, Jordan, M.J.*, Printezis, T.I" and Spence, S.t
2 p u b l i c c l a s s SpagShow {
3 public static void main (String[] args){ //start m a i n m e t h o d
4 try { //catch store e x c e p t i o n s
5 PJavaStore pjs = P J a v a S t o r e . g e t S t o r e ( ) ; //obtain a pers'nt, store
6 Spaghetti sp = (Spaghetti)pjs.getPRoot( "Spagl ~ );
7 sp.display();
8 } c a t c h (PJSException e){ ... } //handle e x c e p t i o n s
9 } //end of main
i0 } //end of S p a @ S h o w
Figure 2: Using Preserved Data Structures