I need to do a String to calendar conversion, so I have to set the value in a variable (which is in calendar type) in a class and then insert the data into a database!
System.out.println("Digite a Data de Aniversario do Funcionario");
String data = scan1.nextLine();
SimpleDateFormat form = new SimpleDateFormat("yyyy/MM/dd");
Date data1 =(Date)form.parse(data);
Calendar cal = Calendar.getInstance();
cal.setTime(data1);
f.setDataAniver(cal.setTime(data1));