JuggaloBrotha
Jan 27th, 2010, 02:08 PM
We're using NetBeans in my Java class and I'm wondering why this wont compile:public class LoanClass {
const float HOUSE_15YR = 1.2;
const float HOUSE_30YR = 1.2;
}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?
All I need is a float that's a constant.
const float HOUSE_15YR = 1.2;
const float HOUSE_30YR = 1.2;
}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?
All I need is a float that's a constant.