Hey!
I just started to learn java, my idea is to make a little utility tool where i can calculate the energylevel of an hydrogen atom. My code is
""import java.util.Scanner; import javax.naming.spi.DirStateFactory.Result; import static java.lang.Math.PI; public class energihydrogen { static double b = 2.18 * pwo(10, -18) ; static int counter = 0; public static void main(String[] args) { { double a; double c; Scanner in = new Scanner(System.in); System.out.println("write a number between[N=1,2,3,4....]"); a = in.nextInt(); System.out.println("you wrote a number!"+a); } } private static double pwo(int i, int j) { // TODO Auto-generated method stub return 0; } Double result ; result c = - b / pwo(double a, 2) ; public static void herpderp (double output) { counter++ ; System.out.println("result " + counter + " is " + output) ; } }
i want the user to be able to change the variable "a" so they can calculate the level they want, and i keep getting theese errors. I have probably done someting really wrong.. I would really apreciate som help: D
Thank you