Created
February 16, 2017 23:41
-
-
Save Rafael11j/3d3dd46fe2ff30bb861a296400188fd0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício02 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
| String nome; | |
| int idade; | |
| System.out.println("Digite seu nome: "); | |
| nome = abre.nextLine(); | |
| System.out.println("Digite sua idade: "); | |
| idade = abre.nextInt(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment