Quine
Print out a program's own source code. Since this is a puzzle, shorter/more efficient versions are encouraged along side more obvious versions.
Quine
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class Quine{ public static void main(String[] args){ try{ BufferedReader input = new BufferedReader( new FileReader("Quine.java")); String line; while((line = input.readLine())!=null){ System.out.println(line); } }catch(FileNotFoundException e){ e.printStackTrace(); }catch(IOException e){ e.printStackTrace(); } } }