Posts by Wisly Santos • 1 point
1 post
-
-2
votes2
answers284
viewsA: How do I scan a Date type data?
public class Cliente { Date dataNascimento; } Scanner e = new Scanner(System.in); cliente.setDataNascimento(e.next); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); So it would work…
javaanswered Wisly Santos 1