Skip to content
Snippets Groups Projects

WIP: Master

Open Zhuolun Lang requested to merge zlang/SWEN90006-A1-2018:master into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -106,7 +106,7 @@ public class Machine
@@ -106,7 +106,7 @@ public class Machine
private int parseReg(String s) throws InvalidInstructionException
private int parseReg(String s) throws InvalidInstructionException
{
{
if (s.length() < 2){
if (s.length() < 3){
throw new InvalidInstructionException();
throw new InvalidInstructionException();
}
}
if (s.charAt(0) != 'r'){
if (s.charAt(0) != 'r'){
Loading