Link to home
Start Free TrialLog in
Avatar of seanf85
seanf85

asked on

Need help making sum, difference, product, average in java using eclispe

hello Need help making sum, difference, product, average in java using eclispe i want to make this work in my program i only need two integers and have it display it sum, difference, product, and average how do you build it to do that.
ASKER CERTIFIED SOLUTION
Avatar of JonasLedel
JonasLedel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seanf85
seanf85

ASKER

what is the code for the array with integer values into a fuction that calculates the sum, difference, product and averge iam kinda of new to java my main problem iam getting these codes errors with the JOption is this due to the program not finding the right path also just want to ask how would i start this program out with the code you gave me. can you please me me example like the class main_class {
 java.lang.NoClassDefFoundError: my_kidprogram_Fernandez
Caused by: java.lang.ClassNotFoundException: my_kidprogram_Fernandez
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
Avatar of seanf85

ASKER

thanks for the help it worked