Execute SNUSP/Java: Difference between revisions
Content added Content deleted
m (moved RCSNUSP/Java to Execute SNUSP/Java) |
m (Fixed syntax highlighting.) |
||
Line 7: | Line 7: | ||
The main class: |
The main class: |
||
< |
<syntaxhighlight lang="java5">import java.awt.Point; |
||
import java.io.BufferedReader; |
import java.io.BufferedReader; |
||
import java.io.FileNotFoundException; |
import java.io.FileNotFoundException; |
||
Line 49: | Line 49: | ||
return code; |
return code; |
||
} |
} |
||
}</ |
}</syntaxhighlight> |
||
The code pointer class: |
The code pointer class: |
||
< |
<syntaxhighlight lang="java5">import java.awt.Point; |
||
import java.io.BufferedReader; |
import java.io.BufferedReader; |
||
import java.io.IOException; |
import java.io.IOException; |
||
Line 218: | Line 218: | ||
UP,DOWN,LEFT,RIGHT; |
UP,DOWN,LEFT,RIGHT; |
||
} |
} |
||
}</ |
}</syntaxhighlight> |