Posts by Valdecir Junior • 19 points
4 posts
-
0
votes1
answer157
viewsQ: Doubts about the Caelum POO JAVA booklet
Hello, I am studying the Java Object Orientation Caelum booklet and on page 131, I need to import a lib that I took from this link:…
javaasked Valdecir Junior 19 -
0
votes2
answers284
viewsQ: How do I scan a Date type data?
I want to read like this, but you don’t have the option I want; public class Cliente { Date dataNascimento; } Scanner e = new Scanner(System.in); cliente.setDataNascimento(e.next); I did it but it…
javaasked Valdecir Junior 19 -
0
votes2
answers62
viewsA: Double appearing dice
I figured it out, just do it like this: System.out.println("Nome do Cliente: " + venda.getCliente().getNome()); System.out.println("Nome do Funcionario: " + venda.getFuncionario().getNome()); for…
-
-2
votes2
answers62
viewsQ: Double appearing dice
I wonder why when I run this code it shows twice the name of the client and employee, and how to solve to appear only once package modelo; import java.util.Date; public class Pessoa { public int…