Execute HQ9+/Java: Difference between revisions

m
Note about Unicode trick
m (Spaces so "break" is highlighted)
m (Note about Unicode trick)
Line 1:
{{implementation|HQ9+}}{{collection|RCHQ9+}}[[Category:Java]]This program accepts input from a file named by its first argument, or std in if no arguments are given.
 
Note: A [[Unicode]] trick could be done to make this source code a quine (similar to the one done in [[RCHQ9+/Tcl]], but also replacing the literal 99's with "100 - 1").
<lang java>import java.io.BufferedReader;
import java.io.FileReader;
Anonymous user