this code returned the following error:
Main.java:15: error: cannot find symbol
i = x.compareTo(2.2);
^
symbol: method compareTo(double)
location: variable x of type Number
1 error
Q1. why did this happen? what's wrong?
Q2. what does "cannot find symbol" mean?