I use Eclipse to write and test Java. I am new, so I don’t know anything about Eclipse.
The problem occurs when I try to run the Java file that I just wrote. Instead of launching the file that opens, it executes the file that I successfully executed before. I have several files in the same package by default. Package Explorer shows that my package location is: Aayush> src> default package
I want to run a file with a name logicaloperator.java, but it launches ifstatement.java, both of them are in the same package by default, and I use the 6th button on the toolbar to launch it. When I press the start button, it says: “run ifstatement”, but you need to say “run the logical operator”.
source
share