I’m currently working on a school project in Eclipse (We have just started using this) and we are running into a small hickup: Because we used BlueJ before, we did not have any main method, we added one but ran into a problem.
We have to send an Int value in the parameter instead of a String[] with args, we tried
public static void main(Int[] args)
This results in the following error:
Error: Main method not found in class Tester, please define the main
method as: public static void main(String[] args)
I’m wondering what we should do/change to get this to work.
Have a look into
Integer.parseInt("123"),see http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#parseInt%28java.lang.String,%20int%29
I hope you’ll figure out the rest 🙂