Showing the min and max value of a float integer??? really confused
How do I write a program that shows the max and the min value of a float integer? like for example in order to get the max value of a long integer we type System.out.println(Integer.MAX_VALUE); How would I do that for a float integer?
Re: Showing the min and max value of a float integer??? really confused
The term is a float (primitive), or a Float (class), not a "float integer". You use the same field MAX_VALUE, but instead you use the Float class instead of the Integer class.
See also: Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)