How many ways are there to let the code output itself?
For example, write the code below,
public class Test
{
public static void main(String[] args)
{
// some code
}
}
to output itself
public class Test
{
public static void main(String[] args)
{
// some code
}
}
(Any programming language is accepted)
EDIT This question has been answered in the historical posts, search "quine" or check out http://stackoverflow.com/search?q=quine