Advertisement
MarouaneTheViper

Untitled

Apr 29th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. private void stringToInstruction(String text)
  2. {
  3. String[] result = text.split("\\s");
  4. if(result[0].startsWith("."))
  5. {
  6. inst[count++].comment = Arrays.toString(result);
  7. }
  8. else
  9. {
  10. switch(result.length)
  11. {
  12. case 2:
  13. break;
  14. case 3:
  15. break;
  16. case 4:
  17. break;
  18. case 5:
  19. break;
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement