Last active
June 30, 2018 03:35
-
-
Save dariogabriel113/245fe5c1770a2ddcd25c5236ac7fd576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestConversion{ | |
public static void main(String[] args){ | |
float floatingPoint = 3.14f; | |
double salary = 1270.50; | |
int value = (int) salary; | |
System.out.println(value); | |
double value1 = 0.2; | |
double value2 = 0.1; | |
double total = value1 + value2; | |
System.out.println(total); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment