Created
August 4, 2017 19:55
-
-
Save ramiresnas/7059f62e6e3bba3e25e7ed2649d4e2ed to your computer and use it in GitHub Desktop.
Tipos em Java
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 Duvida { | |
public static void main(String[] args) { | |
//declarando | |
int numero; | |
//inicializando | |
numero = 2234589; | |
//poderiamos ter declarado e inicializado em uma única linha | |
int numero2 = 2234589; | |
//uma outra forma válida mas menos utilizada é: | |
int x=3,y=5,z=x; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment