Posts by Amós Correia Oliveira • 21 points
3 posts
-
0
votes1
answer22
viewsQ: How to use Scanner to define the characteristics of the "product" object
public static void cadastrarProduto(String nome, int codigo, int quantidade, double valor) { var produto = new Produto(); Scanner leitor = new Scanner(System.in); nome = leitor.next(); produto.nome…
-
-2
votes0
answers13
viewsQ: Couldn’t start client language support for java (Syntax Server). how to resolve?
APPEARS IN THE OUTPUT: conection to server is erroring. Shutting down server
visual-studio-codeasked Amós Correia Oliveira 21 -
0
votes1
answer26
viewsQ: How to sum the lines of a two-dimensional vector and show the result of the sum of each line?
for (int i = 0; i < vetor.length; i++) { for (int j = 0; j < vetor.length; j++) { soma += vetor[j][i]; } System.out.print("Aluno " + (i + 1) + " : "); System.out.println(soma + " "); }…