Hi,
I was wondering how can I write code that will print out my program?
So for example, if my program is
java Code:
public static main
(String args[]
) {
code that prints program here;
}
then I want it to print out exactly the above as well (including all things, like braces, etc)
This is almost like a brain teaser, since you can't really use a print command to print each thing, because it'd be like a mirror in a mirror.
If anyone has any advice/tips to do it, that'd be great.
Thanks