Someone please help! I am trying to read a text file from a Translator class in
java then I have another class to read it as instructions to do. I have some code but when I
test my compiler it brings me back an empty ArrayDeque. I have also forgotten how to call the methods from the other class for instructions after it has found instructions. I am not wanting someone to code this all for me but I need someone to explain where I am going wrong. Here are my codes so far.
I have not been able to figure out the parsing of this file.
My text file is in this format:
input length
input width
recall length
recall width
dup2
add
push 2
mult
store perimeter
mult
pop
recall perimeter
end