Campbell Ritchie wrote:Welcome again
I have added code tags to your post and removed the excess blank lines. That usually makes it look a lot better, but your indentation is inconsistent. Try ctrl‑A‑ctrl‑I in Eclipse.
I don't understand what you mean about crossing over; are you using the Run Last button on Eclipse? That calls the last thing you executed and runs it again. If I use Eclipse, I usually right‑click the class with main method and run as→Java application (or similar). That way you can invoke the main method on any class.
Note you use the .java extension first time and omit it second time.mkdir java
cd java
javac usingBothInputOutput.java
java usingBothInputOutput