I keep running into this situation
I write a class and then want to make a copy of it and try something else in the copy.
I start with a package and inside of it a class with main. I make a copy in the same package.
IntelliJ and probably other IDEs give an error saying that it does not know which main to use.
I could make a file in the
IDE and copy the code I don't want and bring it back later.
I could comment out the entire contents of the class I don't want.
I could make a new package and store parts that I don't want in it.
I could figure out how to connect git to Intellij and make branches which seems like too much to figure out at the moment.
What is a good way to work like this?
Thanks,
Kevin