We're using NetBeans in my Java class and I'm wondering why this wont compile:NetBeans is telling me that there's a loss of data and that I should change the 'float' to a 'double' and when I do that it still wont compile because it's an illegal start of type. What does that mean?Code:public class LoanClass { const float HOUSE_15YR = 1.2; const float HOUSE_30YR = 1.2; }
All I need is a float that's a constant.


Reply With Quote