You are on page 1of 1

Arquivo TiposDados.

java

public class ​TiposDados {

​public static void ​main​(String[] args) {

​String nome​;
​String sobreNome = ​"Sobrenome"​;

​System.​out​.println(​"Double: Max: " ​+ Double.​MAX_VALUE ​+ ​" - Double: " ​+


Double.​MIN_VALUE​)​;
​System.​out​.println(​"Float: Max: " ​+ Float.​MAX_VALUE ​+ ​" - Min: " ​+
Float.​MIN_VALUE​)​;
​System.​out​.println(​"Long: Max: " ​+ Long.​MAX_VALUE ​+ ​" - Long: " ​+
Long.​MIN_VALUE​)​;
​System.​out​.println(​"Integer: Max: " ​+ Integer.​MAX_VALUE ​+ ​" - Min: " ​+
Integer.​MIN_VALUE​)​;
​System.​out​.println(​"Short: Max: " ​+ Short.​MAX_VALUE ​+ ​" - Min: " ​+
Short.​MIN_VALUE​)​;
​System.​out​.println(​"Byte: Max: " ​+ Byte.​MAX_VALUE ​+ ​" - Min: " ​+
Byte.​MIN_VALUE​)​;

​}

You might also like