Execute SNUSP/Java: Difference between revisions

Content added Content deleted
m (Fixed syntax highlighting.)
 
Line 7: Line 7:


The main class:
The main class:
<lang java5>import java.awt.Point;
<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;
}
}
}</lang>
}</syntaxhighlight>
The code pointer class:
The code pointer class:
<lang java5>import java.awt.Point;
<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;
}
}
}</lang>
}</syntaxhighlight>