Makubex_GB
09-24-2006, 10:18 AM
I have to make this program for tomorrow that makes a drawing by inserting characters or strings, setting each character or strings' location with x,y coordinates. These are the conditions:
1. Must be able to save the whole drawing to a string variable.
2. Must be able to replace any given character at any location.
3. Must be able to delete any given character at any location.
4. Must be able to insert any given character at any location.
5. Must be able to replace every instance in the drawing of a given character for another character.
6. Must be able to remove 25% of the drawing while keeping it understandable.
7. Must be able to display the drawing on screen (of course).
**Suggested we use the classes String and StringBuffer**
Now I don't want you to make the program for me, I just need to know what methods to use! We still haven't even covered loops (but I can use them if necessary) and the Prof. wants us to make this!!
I know I can use drawString(str,x,y) to insert strings, but how the heck can I save the whole drawing into a single string variable???
Please help me. http://www.3dgameman.com/forums/images/smilies/hail.gif
1. Must be able to save the whole drawing to a string variable.
2. Must be able to replace any given character at any location.
3. Must be able to delete any given character at any location.
4. Must be able to insert any given character at any location.
5. Must be able to replace every instance in the drawing of a given character for another character.
6. Must be able to remove 25% of the drawing while keeping it understandable.
7. Must be able to display the drawing on screen (of course).
**Suggested we use the classes String and StringBuffer**
Now I don't want you to make the program for me, I just need to know what methods to use! We still haven't even covered loops (but I can use them if necessary) and the Prof. wants us to make this!!
I know I can use drawString(str,x,y) to insert strings, but how the heck can I save the whole drawing into a single string variable???
Please help me. http://www.3dgameman.com/forums/images/smilies/hail.gif