Posts by Emerson Araujo • 53 points
2 posts
-
4
votes2
answers110
viewsQ: How to do for every time you pass "true", it print the entire instantiated object?
import java.util.ArrayList; public class Loja { private ArrayList<Produto> ListaDeProdutos = new ArrayList<>(); public void cadastrarProduto(Produto produto){…
-
0
votes1
answer208
viewsQ: Can anyone tell me why my console doesn’t show up as a result of anything?
Receive a value n and print the following table using the structure chaining for: 1 2 4 3 9 27 4 16 64 256 n n² n³ ... n^n I tried to: import java.util.Scanner; public class Questao4 { public void…