Question

In eclipse, how would I go about making a method call without writing a test class. For example, if I'm making a method that performs a certain algorithm, is it possible for me to simply call the method and pass the parameters in? I know the BlueJ IDE can do this so I'm sure Eclipse can, I'm just not sure how.

Thanks!

Was it helpful?

Solution

You need a main(String[] args) method to run anything in Java, and it needs to be in a class. Solution: create your test class. Welcome to real Java.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top