View Single Post
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 05-02-2008, 07:34 PM

Not a problem. Most of us forget that we need to go into 'great' detail when trying to explain to another person our programming issue.

Anyway, Thank you for providing the additional information concerning your problem.

Refer back to page 169 of the book. It appears that Mr. Herbert possibly wrote a method which his print statement calls. (The "print" instruction always displays at the bottom of your screen.) He appears to use this as a way to display the information depicted in the Figure.

Looking at Figure 6-17 it appears as though he is concatenating two Strings within his method to print the information. This in itself is not easy because in Alice he has to cast an Integer to a String before he can 'join' it and then print the String. (Remember, Alice is not pure Java 6.0- you still have to 'cast') This requires familiarity with several of Alice's functions and the use of 'place holders' when constructing statements. Are you familiar with this process of "place holders" when constructing statements in Alice?

The bottom line is that it can be done, however it requires some thought before proceeding.

I suggest you test my theory by first writing a method and testing it using the Print instruction. If it shows in your "Debug" window then proceed accordingly.

Good luck.

Last edited by lanceA; 05-02-2008 at 08:31 PM. Reason: to add additional comments
   
Reply With Quote