Comment on Tutorial - float vs double data types in Java By Baski



Comment Added by : robert

Comment Added at : 2014-12-12 07:48:59

Comment on Tutorial : float vs double data types in Java By Baski
from docs api api/java/awt/Frame/setOpacity:

public void setOpacity(float opacity)
Sets the opacity of the window.
The opacity value is in the range [0..1]
//

commenting because if float isn't good for precision it's strange to me oracle would choose float for this value


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. can anybody tell me the full code for sending sms
View Tutorial          By: shikha at 2008-10-13 11:43:40

2. excellent
View Tutorial          By: amit gupta at 2012-07-03 12:31:31

3. This solve my problem to use toString() method. Th
View Tutorial          By: Simon at 2009-07-31 08:56:36

4. I'm a begner but i dont know the way to ask quisti
View Tutorial          By: sajid kahn at 2013-05-23 19:15:26

5. Thanx a Lot .Your Soln provided a great help
View Tutorial          By: Amit at 2011-11-21 18:35:56

6. Wed Sep 23 20:38:16 IST 2009:Sender:*** time out a
View Tutorial          By: charan at 2009-09-23 09:13:22

7. i am new to java plz give any sample and simple ja
View Tutorial          By: sham at 2012-03-20 02:30:20

8. Hello,
I have downloaded this code

View Tutorial          By: Parthasarathi at 2009-09-21 02:09:49

9. I did'nt manage to run the program . I've added th
View Tutorial          By: Bull at 2012-01-01 16:28:20

10. The example is wrong, because there are two sepera
View Tutorial          By: billGates at 2010-07-06 16:56:13