GoConqr has a new look! Let us know what you think.

Notes

aula 11/03

Tnt Thur soluções computacionais Enem Portuguese 3 pages

Content of the notes (3)

Page 1

estrutura de controle

controlam o fluxo de execução do programa, por meio de interações seleção ou salto

seleção- if e switch int.- for, while e do do-while e salto- break, continue e return

Page 2

entrada de dados do teclado - System.in

public class EntradaDeDados{

public static void main(String[] args) throws java.io.IOException {

char ch;

System.out.print("Pressione qualquer tecla:");

ch = (char)System.in.read();

System.out.println("A tecla pressionada foi: "+ ch);

}

}

Page 3

import java.util.Scanner;

public class EntradaDeDados{

public static void main(String[] args) throws java.io.IOException {

Scanner input = new Scanner(System.in);

System.out.print("Digite qualquer tecla: ");

char ch = (char)input.next().charAt(0);

System.out.println("A tecla digitada foi: " + ch);

input.close();

}

}

Information

Description
Enem soluções computacionais Note on aula 11/03, created by Tnt Thur on 11/03/2025.
Created by
Tnt Thur · Mar 2025
Updated
Mar 12, 2025
Views
2
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?