there is a section in a school project where I need to convert input to a double, to be multiplied by another double, and I keep getting "error: int cannot be dereferenced" for the following code:
int a = Integer.parseInt(input.readLine());
int aa = a.nextInt();
int aaa = Math.pow(1 + a, aa);
amount1 = (aaa * 13.49);
amount += amount1;
Any ideas as to what I'm doing wrong?
intis a primitive, not an object. This means you cannot call methods on it.