Skip to content
Snippets Groups Projects
Commit c1244ce1 authored by He Zhu's avatar He Zhu
Browse files

Update Machine.java

parent f49fc64b
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ public class Machine ...@@ -198,7 +198,7 @@ public class Machine
toks = inst.split("\\s+"); toks = inst.split("\\s+");
/* check minimum number of tokens */ /* check minimum number of tokens */
if (toks.length < 2){ if (toks.length > 2){
throw new InvalidInstructionException(); throw new InvalidInstructionException();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment