Published using Google Docs
Java Basics 102 - Double Variables
Updated automatically every 5 minutes

Java Basics 102 – Double Variables

STEPS

1) Browse http://ideone.com/1gau2Z 

 

http://ideone.com/1gau2Z 

2) Change the variables properties to Double Data Types.

Change line no.13 to:

double first_number, second_number, answer;

Change line no.14, 15 to:

first_number = 10.5;
second_number = 20.8;

Outcome:

http://ideone.com/O5GIga 

REFERENCE

http://www.homeandlearn.co.uk/java/double_variables.html